refs #2429 Disable filter settings in misskey

This commit is contained in:
AkiraFukushima 2021-05-22 15:31:44 +09:00
parent 908dd99d3d
commit 03637cf521
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<div id="filters"> <div id="filters">
<h2>{{ $t('settings.filters.title') }}</h2> <h2>{{ $t('settings.filters.title') }}</h2>
<div class="new-filter"> <div class="new-filter">
<el-button type="primary"> <el-button type="primary" :disabled="sns === 'misskey'">
<router-link tag="span" :to="`/${id()}/settings/filters/new`"> <router-link tag="span" :to="`/${id()}/settings/filters/new`">
{{ $t('settings.filters.new.title') }} {{ $t('settings.filters.new.title') }}
</router-link> </router-link>
@ -57,6 +57,9 @@ export default {
}), }),
...mapState({ ...mapState({
backgroundColor: state => state.App.theme.background_color backgroundColor: state => state.App.theme.background_color
}),
...mapState('TimelineSpace', {
sns: state => state.sns
}) })
}, },
async created() { async created() {