68 lines
926 B
JavaScript
68 lines
926 B
JavaScript
|
|
|
||
|
|
|
||
|
|
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" );
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|