This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
// utils and handlers
|
||||
//
|
||||
export default {
|
||||
///////////////////////////////////
|
||||
///////////////////////////////////
|
||||
// WIRE UP DIALOG EVENTS
|
||||
//
|
||||
// called once from app.vue only
|
||||
@@ -52,6 +52,29 @@ export default {
|
||||
timeout: 5000
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
////////////////////////////
|
||||
//
|
||||
//
|
||||
confirmDelete(vm) {
|
||||
//https://github.com/yariksav/vuetify-dialog#readme
|
||||
return vm.$dialog.warning({
|
||||
text: vm.$gzlocale.get("DeletePrompt"),
|
||||
title: vm.$gzlocale.get("Delete"),
|
||||
icon: "fa-exclamation-triangle",
|
||||
actions: [
|
||||
{
|
||||
text: vm.$gzlocale.get("Cancel"),
|
||||
key: false
|
||||
},
|
||||
{
|
||||
text: vm.$gzlocale.get("Delete"),
|
||||
color: "red",
|
||||
key: true
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
//new functions above here
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user