Sharkey/src/client/app/desktop/views/components/settings.mute.vue

32 lines
584 B
Vue
Raw Normal View History

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