This commit is contained in:
2020-04-01 18:48:38 +00:00
parent bd7d43f462
commit 810e060fed
4 changed files with 25 additions and 9 deletions

View File

@@ -255,9 +255,9 @@ export default {
readOnly: readOnly
});
//bugbug WTF? This doesn't make sense, if it's an attempt to hide delete button then that's wrong
//it's a new record so it can't be deleted so...
vm.rights.delete = false;
// //bugbug WTF? This doesn't make sense, if it's an attempt to hide delete button then that's wrong
// //it's a new record so it can't be deleted so...
// vm.rights.delete = false;
generateMenu(vm);
}
})
@@ -635,7 +635,7 @@ function generateMenu(vm) {
});
}
if (vm.rights.delete) {
if (vm.rights.delete && vm.$route.params.recordid != 0) {
menuOptions.menuItems.push({
title: window.$gz.translation.get("Delete"),
icon: "fa-trash-alt",