- dialog confirm delete item
- fix: context-menu (right click) declared only once and using twice using: @click.native="$refs.popover.$refs.popup.show()"
This commit is contained in:
18
src/classes/routinestd.ts
Normal file
18
src/classes/routinestd.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export async function askConfirm($q: any, mytitle, mytext, ok, cancel) {
|
||||
try {
|
||||
return await $q.dialog({
|
||||
title: mytitle,
|
||||
message: mytext,
|
||||
ok: ok,
|
||||
cancel: cancel
|
||||
}).then((ris) => {
|
||||
return true
|
||||
// this.$q.notify('Agreed!')
|
||||
}).catch(() => {
|
||||
return false
|
||||
// this.$q.notify('Disagreed...')
|
||||
})
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user