Remove obsolete code

This commit is contained in:
roschaefer 2019-10-10 19:37:57 +02:00
parent 465a46c8d4
commit ba27d2189d

View File

@ -11,10 +11,10 @@
<ds-text>
{{ $t('settings.embeds.status.change.question') }}
</ds-text>
<ds-button @click="toFalse" :primary="!disabled" :disabled="!disabled">
<ds-button @click="submit" :primary="!disabled" :disabled="!disabled">
{{ $t('settings.embeds.status.change.deny') }}
</ds-button>
<ds-button @click="toTrue" :primary="disabled" :disabled="disabled">
<ds-button @click="submit" :primary="disabled" :disabled="disabled">
{{ $t('settings.embeds.status.change.allow') }}
</ds-button>
@ -47,8 +47,6 @@ export default {
},
data() {
return {
allowEmbeds_h3: this.$t('settings.embeds.false'),
allowEmbeds_desc: this.$t('settings.embeds.third-party-false'),
disabled: null,
providers: [],
}
@ -63,16 +61,6 @@ export default {
...mapMutations({
setCurrentUser: 'auth/SET_USER',
}),
toFalse() {
this.allowEmbeds_h3 = this.$t('settings.embeds.false')
this.allowEmbeds_desc = this.$t('settings.embeds.third-party-false')
this.submit()
},
toTrue() {
this.allowEmbeds_h3 = this.$t('settings.embeds.true')
this.allowEmbeds_desc = this.$t('settings.embeds.third-party-true')
this.submit()
},
async submit() {
try {
await this.$apollo.mutate({