This commit is contained in:
@@ -53,9 +53,8 @@ export default {
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
////////////////////////////
|
||||
//
|
||||
/////////////////////////////////////
|
||||
// Are you sure you want to delete?
|
||||
//
|
||||
confirmDelete(vm) {
|
||||
//https://github.com/yariksav/vuetify-dialog#readme
|
||||
@@ -75,6 +74,26 @@ export default {
|
||||
}
|
||||
]
|
||||
});
|
||||
}, /////////////////////////////////////
|
||||
// Are you sure you want to delete?
|
||||
//
|
||||
confirmLeaveUnsaved(vm) {
|
||||
return vm.$dialog.warning({
|
||||
text: vm.$gzlocale.get("AreYouSureUnsavedChanges"),
|
||||
title: vm.$gzlocale.get("Leave"),
|
||||
icon: "fa-exclamation-triangle",
|
||||
actions: [
|
||||
{
|
||||
text: vm.$gzlocale.get("Cancel"),
|
||||
key: false
|
||||
},
|
||||
{
|
||||
text: vm.$gzlocale.get("Leave"),
|
||||
color: "red",
|
||||
key: true
|
||||
}
|
||||
]
|
||||
});
|
||||
}
|
||||
//new functions above here
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user