refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
@ -101,10 +101,9 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
remove(ad) {
|
||||
os.dialog({
|
||||
os.confirm({
|
||||
type: 'warning',
|
||||
text: this.$t('removeAreYouSure', { x: ad.url }),
|
||||
showCancelButton: true
|
||||
}).then(({ canceled }) => {
|
||||
if (canceled) return;
|
||||
this.ads = this.ads.filter(x => x != ad);
|
||||
|
Reference in New Issue
Block a user