mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
ts-lint fixes
This commit is contained in:
parent
180bfc250f
commit
cce6a90a15
@ -165,12 +165,12 @@
|
|||||||
|
|
||||||
kick(member: Member) {
|
kick(member: Member) {
|
||||||
this.$swal({
|
this.$swal({
|
||||||
title: this.$t('context.confirm.kick_title', { 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 }),
|
text: this.$t('context.confirm.kick_text', { name: member.displayname }) as string,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: this.$t('context.confirm.button_yes'),
|
confirmButtonText: this.$t('context.confirm.button_yes') as string,
|
||||||
cancelButtonText: this.$t('context.confirm.button_cancel'),
|
cancelButtonText: this.$t('context.confirm.button_cancel') as string,
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.$accessor.user.kick(member)
|
this.$accessor.user.kick(member)
|
||||||
@ -180,12 +180,12 @@
|
|||||||
|
|
||||||
ban(member: Member) {
|
ban(member: Member) {
|
||||||
this.$swal({
|
this.$swal({
|
||||||
title: this.$t('context.confirm.ban_title', { 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 }),
|
text: this.$t('context.confirm.ban_text', { name: member.displayname }) as string,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: this.$t('context.confirm.button_yes'),
|
confirmButtonText: this.$t('context.confirm.button_yes') as string,
|
||||||
cancelButtonText: this.$t('context.confirm.button_cancel'),
|
cancelButtonText: this.$t('context.confirm.button_cancel') as string,
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.$accessor.user.ban(member)
|
this.$accessor.user.ban(member)
|
||||||
@ -195,12 +195,12 @@
|
|||||||
|
|
||||||
mute(member: Member) {
|
mute(member: Member) {
|
||||||
this.$swal({
|
this.$swal({
|
||||||
title: this.$t('context.confirm.mute_title', { 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 }),
|
text: this.$t('context.confirm.mute_text', { name: member.displayname }) as string,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: this.$t('context.confirm.button_yes'),
|
confirmButtonText: this.$t('context.confirm.button_yes') as string,
|
||||||
cancelButtonText: this.$t('context.confirm.button_cancel'),
|
cancelButtonText: this.$t('context.confirm.button_cancel') as string,
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.$accessor.user.mute(member)
|
this.$accessor.user.mute(member)
|
||||||
@ -210,12 +210,12 @@
|
|||||||
|
|
||||||
unmute(member: Member) {
|
unmute(member: Member) {
|
||||||
this.$swal({
|
this.$swal({
|
||||||
title: this.$t('context.confirm.unmute_title', { 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 }),
|
text: this.$t('context.confirm.unmute_text', { name: member.displayname }) as string,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonText: this.$t('context.confirm.button_yes'),
|
confirmButtonText: this.$t('context.confirm.button_yes') as string,
|
||||||
cancelButtonText: this.$t('context.confirm.button_cancel'),
|
cancelButtonText: this.$t('context.confirm.button_cancel') as string,
|
||||||
}).then(({ value }) => {
|
}).then(({ value }) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.$accessor.user.unmute(member)
|
this.$accessor.user.unmute(member)
|
||||||
|
@ -37,7 +37,7 @@ export const context = {
|
|||||||
unmute_text: 'Are you sure you want to unmute {name}?',
|
unmute_text: 'Are you sure you want to unmute {name}?',
|
||||||
button_yes: 'Yes',
|
button_yes: 'Yes',
|
||||||
button_cancel: 'Cancel',
|
button_cancel: 'Cancel',
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
export const controls = {
|
export const controls = {
|
||||||
|
Loading…
Reference in New Issue
Block a user