Hi all, Could please help with the process of UI customization:
I have CloudStack 4.6.0 built from the source. I want to add a custom button to the WebUI menu. In file ui/scripts/cloudStack.js I added my button into sections array *sections: {* * /*** * * Dashboard* * */* * dashboard: {},* * instances: {},* * affinityGroups: {},* * storage: {},* * network: {},* * templates: {},* * events: {},* * projects: {},* * accounts: {},* * domains: {}, //domain-admin and root-admin only* * regions: {}, //root-admin only* * system: {}, //root-admin only* * 'global-settings': {}, //root-admin only* * configuration: {}, //root-admin only* * plugins: {},* * test: {* * title: 'TestSection',* * id: 'TestSection',* * show: function(args){* * var div = document.createElement('div');* * div.innerHTML = "<h1>Test section</h1>";* * return div;* * }* * }* * }* and in sectionPreFilter array *sectionPreFilter: function(args) {* * var sections = [];* * if (isAdmin()) {* * sections = ["dashboard", "instances", "storage", "network", "templates", "accounts", "domains", "events", "system", "global-settings", "configuration", "projects", "regions", "affinityGroups", "test"];* After building the project, the button was added to the menu, but when I edit cloudStack.js and restart jetty UI doesn't change, any changes are applied only after the full project rebuild with command mvn -Pdeveloper,systemvm -DskipTests clean install. Jetty version 6.1.26 How to apply changes without rebuilding project? And is it possible to apply it without restart Jetty?