52 lines
932 B
Vue
52 lines
932 B
Vue
<template>
|
|
<div class="_section">
|
|
<div class="_card">
|
|
<div class="_content">
|
|
<MkSwitch v-model:value="$store.state.i.injectFeaturedNote" @update:value="onChangeInjectFeaturedNote">
|
|
{{ $t('showFeaturedNotesInTimeline') }}
|
|
</MkSwitch>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import { faEllipsisH } from '@fortawesome/free-solid-svg-icons';
|
|
import MkSelect from '@/components/ui/select.vue';
|
|
import MkSwitch from '@/components/ui/switch.vue';
|
|
import * as os from '@/os';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
MkSelect,
|
|
MkSwitch,
|
|
},
|
|
|
|
emits: ['info'],
|
|
|
|
data() {
|
|
return {
|
|
INFO: {
|
|
header: [{
|
|
title: this.$t('other'),
|
|
icon: faEllipsisH
|
|
}]
|
|
},
|
|
}
|
|
},
|
|
|
|
mounted() {
|
|
this.$emit('info', this.INFO);
|
|
},
|
|
|
|
methods: {
|
|
onChangeInjectFeaturedNote(v) {
|
|
os.api('i/update', {
|
|
injectFeaturedNote: v
|
|
});
|
|
},
|
|
}
|
|
});
|
|
</script>
|