Skip to content

Commit

Permalink
MSPB-249: fix Add Device section on user creation (#421)
Browse files Browse the repository at this point in the history
* fix device section on user creation

* remove deprecated init functions
  • Loading branch information
mavriciomart authored Jun 17, 2022
1 parent ab2589e commit 5ed3d78
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,32 +76,15 @@ define(function(require) {

subModules: appSubmodules,

load: function(callback) {
var self = this;

self.initApp(function() {
callback && callback(self);
});
},

initApp: function(callback) {
var self = this;

self.appFlags.common.hasProvisioner = _.isString(monster.config.api.provisioner);

monster.pub('auth.initApp', {
app: self,
callback: callback
});
},

render: function(container) {
var self = this,
parent = container || $('#monster_content'),
template = $(self.getTemplate({
name: 'app'
}));

self.appFlags.common.hasProvisioner = _.isString(monster.config.api.provisioner);

self.loadGlobalData(function() {
/* On first Load, load my office */
template.find('.category#myOffice').addClass('active');
Expand Down

0 comments on commit 5ed3d78

Please sign in to comment.