2018-02-12 14:48:01 +00:00
|
|
|
<template>
|
2018-02-21 16:25:57 +00:00
|
|
|
<div>
|
2018-02-12 14:48:01 +00: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-03-27 07:51:12 +00:00
|
|
|
<p><b>{{ user.name }}</b> @{{ getAcct(user) }}</p>
|
2018-02-12 14:48:01 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-04-01 19:15:27 +00:00
|
|
|
import getAcct from '../../../../../misc/user/get-acct';
|
2018-02-12 14:48:01 +00:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
fetching: true,
|
2018-02-21 16:25:57 +00:00
|
|
|
users: []
|
2018-02-12 14:48:01 +00:00
|
|
|
};
|
|
|
|
},
|
2018-03-27 07:51:12 +00:00
|
|
|
methods: {
|
|
|
|
getAcct
|
|
|
|
},
|
2018-02-12 14:48:01 +00:00
|
|
|
mounted() {
|
2018-02-18 03:35:18 +00:00
|
|
|
(this as any).api('mute/list').then(x => {
|
2018-02-12 14:48:01 +00:00
|
|
|
this.users = x.users;
|
2018-02-19 14:37:09 +00:00
|
|
|
this.fetching = false;
|
2018-02-12 14:48:01 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|