mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 19:34:21 +02:00
refactor(client): refactor dialog functions to improve type inference
This commit is contained in:
@@ -86,10 +86,9 @@ export default defineComponent({
|
||||
},
|
||||
|
||||
async del() {
|
||||
const { canceled } = await os.dialog({
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'warning',
|
||||
text: this.$t('removeAreYouSure', { x: this.file.name }),
|
||||
showCancelButton: true
|
||||
});
|
||||
if (canceled) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user