First commit
This commit is contained in:
68
application/demo/leftSide/leftSide.button.users.js
Normal file
68
application/demo/leftSide/leftSide.button.users.js
Normal file
@@ -0,0 +1,68 @@
|
||||
|
||||
|
||||
import menuButton from './leftSide.button.js';
|
||||
|
||||
import groups from '/user/group/user.group.permission.js';
|
||||
|
||||
|
||||
export default class usersPageButton extends menuButton{
|
||||
|
||||
text = "Users";
|
||||
|
||||
click() {
|
||||
|
||||
this.stateMachine.composeState( "Users" );
|
||||
|
||||
this.openPage();
|
||||
|
||||
}
|
||||
|
||||
state openPage() {
|
||||
|
||||
this.deactivateButtons();
|
||||
|
||||
this.activateButton();
|
||||
|
||||
var application = this.parent.parent;
|
||||
|
||||
var rightSide = application.rightSide;
|
||||
|
||||
rightSide.width = "";
|
||||
|
||||
rightSide.hideChildren();
|
||||
|
||||
rightSide.userListPage.show();
|
||||
|
||||
rightSide.userListPage.userTable.body.create()
|
||||
|
||||
#ifdef ANDROID
|
||||
|
||||
application.minimizeButton.close();
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
enableREAD() {
|
||||
|
||||
this.show();
|
||||
|
||||
}
|
||||
|
||||
disableREAD() {
|
||||
|
||||
this.hide();
|
||||
|
||||
}
|
||||
|
||||
permission() {
|
||||
|
||||
this.allow( groups.member , "PROCESS" );
|
||||
this.allow( groups.admin , "PROCESS" );
|
||||
|
||||
this.allow( groups.member , "READ" );
|
||||
this.allow( groups.admin , "READ" );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user