This commit is contained in:
Clebert Suconic 2018-02-14 12:01:01 -05:00
commit ed90a70001
1 changed files with 7 additions and 1 deletions

View File

@ -155,7 +155,7 @@ var ARTEMIS = (function(ARTEMIS) {
// one-time initialization happens in the run function // one-time initialization happens in the run function
// of our module // of our module
ARTEMIS.module.run(function(workspace, viewRegistry, helpRegistry, preferencesRegistry, localStorage, jolokia, ARTEMISService, $rootScope) { ARTEMIS.module.run(function(workspace, viewRegistry, helpRegistry, preferencesRegistry, localStorage, jolokia, ARTEMISService, $rootScope, preLogoutTasks) {
// let folks know we're actually running // let folks know we're actually running
ARTEMIS.log.info("plugin running " + jolokia); ARTEMIS.log.info("plugin running " + jolokia);
@ -297,6 +297,12 @@ var ARTEMIS = (function(ARTEMIS) {
isValid: function (workspace) { return workspace.isTopTabActive("artemis") || workspace.selectionHasDomain(artemisJmxDomain); }, isValid: function (workspace) { return workspace.isTopTabActive("artemis") || workspace.selectionHasDomain(artemisJmxDomain); },
href: function () { return "#/artemis/connections"; } href: function () { return "#/artemis/connections"; }
}); });
preLogoutTasks.addTask("clearArtemisCredentials", () => {
localStorage.removeItem('artemisUserName');
localStorage.removeItem('artemisPassword');
});
}); });