This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user