From cce6a90a1503cf117080172493703680287bebd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Mon, 6 Apr 2020 14:56:20 +0200 Subject: [PATCH] ts-lint fixes --- client/src/components/context.vue | 32 +++++++++++++++---------------- client/src/locale/en-us.ts | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/client/src/components/context.vue b/client/src/components/context.vue index 11cf348f..34e82301 100644 --- a/client/src/components/context.vue +++ b/client/src/components/context.vue @@ -165,12 +165,12 @@ kick(member: Member) { this.$swal({ - title: this.$t('context.confirm.kick_title', { name: member.displayname }), - text: this.$t('context.confirm.kick_text', { name: member.displayname }), + title: this.$t('context.confirm.kick_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.kick_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.kick(member) @@ -180,12 +180,12 @@ ban(member: Member) { this.$swal({ - title: this.$t('context.confirm.ban_title', { name: member.displayname }), - text: this.$t('context.confirm.ban_text', { name: member.displayname }), + title: this.$t('context.confirm.ban_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.ban_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.ban(member) @@ -195,12 +195,12 @@ mute(member: Member) { this.$swal({ - title: this.$t('context.confirm.mute_title', { name: member.displayname }), - text: this.$t('context.confirm.mute_text', { name: member.displayname }), + title: this.$t('context.confirm.mute_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.mute_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.mute(member) @@ -210,12 +210,12 @@ unmute(member: Member) { this.$swal({ - title: this.$t('context.confirm.unmute_title', { name: member.displayname }), - text: this.$t('context.confirm.unmute_text', { name: member.displayname }), + title: this.$t('context.confirm.unmute_title', { name: member.displayname }) as string, + text: this.$t('context.confirm.unmute_text', { name: member.displayname }) as string, icon: 'warning', showCancelButton: true, - confirmButtonText: this.$t('context.confirm.button_yes'), - cancelButtonText: this.$t('context.confirm.button_cancel'), + confirmButtonText: this.$t('context.confirm.button_yes') as string, + cancelButtonText: this.$t('context.confirm.button_cancel') as string, }).then(({ value }) => { if (value) { this.$accessor.user.unmute(member) diff --git a/client/src/locale/en-us.ts b/client/src/locale/en-us.ts index 895ac208..62ff7df7 100644 --- a/client/src/locale/en-us.ts +++ b/client/src/locale/en-us.ts @@ -37,7 +37,7 @@ export const context = { unmute_text: 'Are you sure you want to unmute {name}?', button_yes: 'Yes', button_cancel: 'Cancel', - } + }, } export const controls = {