1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-19 00:58:58 +09:00
cherrypick/src/client/app/desktop/views/components/settings.mute.vue

32 lines
612 B
Vue
Raw Normal View History

2018-02-12 23:48:01 +09:00
<template>
2018-02-22 01:25:57 +09:00
<div>
2018-02-12 23:48:01 +09:00
<div class="none ui info" v-if="!fetching && users.length == 0">
<p>%fa:info-circle%%i18n:desktop.tags.mk-mute-setting.no-users%</p>
</div>
<div class="users" v-if="users.length != 0">
<div v-for="user in users" :key="user.id">
2018-04-09 18:52:29 +09:00
<p><b>{{ user | userName }}</b> @{{ user | acct }}</p>
2018-02-12 23:48:01 +09:00
</div>
</div>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
data() {
return {
fetching: true,
2018-02-22 01:25:57 +09:00
users: []
2018-02-12 23:48:01 +09:00
};
},
mounted() {
2018-02-18 12:35:18 +09:00
(this as any).api('mute/list').then(x => {
2018-02-12 23:48:01 +09:00
this.users = x.users;
2018-02-19 23:37:09 +09:00
this.fetching = false;
2018-02-12 23:48:01 +09:00
});
}
});
</script>