This commit is contained in:
2019-04-19 20:17:05 +00:00
parent 94a1955d86
commit b9440822b4
4 changed files with 27 additions and 12 deletions

View File

@@ -83,11 +83,11 @@ export default {
}
},
///////////////////////////////
// CLICK HANDLER
// APP (GLOBAL) CLICK HANDLER
//
// Deal with a menu change request
// called from App.vue
handleClick(that, menuitem) {
handleAppClick(that, menuitem) {
//Key will start with the string "app:" if it's a global application command that should be handled here,
//otherwise it's a local command for a local form only
//If there is any extended information required for the command it will be in the data property of the menu item
@@ -112,10 +112,24 @@ export default {
break;
default:
alert(
"gzmenu:handleClick - unrecognized command [" + menuitem.key + "]"
"gzmenu:handleAppClick - unrecognized command [" +
menuitem.key +
"]"
);
}
}
},
///////////////////////////////
// CONFIRM RELEVANT CLICK
//
// confirm the click is relevant
// to a contextual caller
// called by all forms except app.vue
isRelevantClick(menuitem) {
if (!menuitem.disabled && !menuitem.key.startsWith("app:")) {
return true;
}
return false;
}
//new functions above here
};