Merge pull request #2431 from h3poteto/iss-2429

refs #2429 Disable filter settings in misskey
This commit is contained in:
AkiraFukushima 2021-05-22 15:37:17 +09:00 committed by GitHub
commit 1d13818bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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