This commit is contained in:
2019-05-02 22:45:51 +00:00
parent f935f3a66b
commit c90c915e1f
6 changed files with 65 additions and 27 deletions

View File

@@ -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
};