diff --git a/src/client/pages/instance/emojis.vue b/src/client/pages/instance/emojis.vue
index 84974f45c..26e238b12 100644
--- a/src/client/pages/instance/emojis.vue
+++ b/src/client/pages/instance/emojis.vue
@@ -24,7 +24,7 @@
{{ $t('name') }}
- {{ $t('category') }}
+ {{ $t('category') }}
{{ $t('tags') }}
{{ $t('save') }}
{{ $t('delete') }}
@@ -65,6 +65,7 @@ import MkButton from '../../components/ui/button.vue';
import MkInput from '../../components/ui/input.vue';
import MkPagination from '../../components/ui/pagination.vue';
import { selectFile } from '../../scripts/select-file';
+import { unique } from '../../../prelude/array';
export default Vue.extend({
metaInfo() {
@@ -102,6 +103,16 @@ export default Vue.extend({
}
},
+ computed: {
+ categories() {
+ if (this.$store.state.instance.meta) {
+ return unique(this.$store.state.instance.meta.emojis.map((x: any) => x.category || '').filter((x: string) => x !== ''));
+ } else {
+ return [];
+ }
+ }
+ },
+
watch: {
host() {
this.$refs.remoteEmojis.reload();