2018-02-12 07:48:01 -07:00
|
|
|
<template>
|
|
|
|
<div class="mk-mute-setting">
|
|
|
|
<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">
|
|
|
|
<p><b>{{ user.name }}</b> @{{ user.username }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
fetching: true,
|
|
|
|
users: null
|
|
|
|
};
|
|
|
|
},
|
|
|
|
mounted() {
|
2018-02-17 20:35:18 -07:00
|
|
|
(this as any).api('mute/list').then(x => {
|
2018-02-12 07:48:01 -07:00
|
|
|
this.users = x.users;
|
2018-02-19 07:37:09 -07:00
|
|
|
this.fetching = false;
|
2018-02-12 07:48:01 -07:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|