First commit
This commit is contained in:
42
application/demo/pages/newsDialogButton.js
Normal file
42
application/demo/pages/newsDialogButton.js
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
import button from '/elements/button.js';
|
||||
|
||||
import groups from '/user/group/user.group.permission.js';
|
||||
|
||||
|
||||
export default class newsDialogButton extends button{
|
||||
|
||||
text = "Create News"
|
||||
|
||||
marginTop = 10;
|
||||
|
||||
marginLeft = 2;
|
||||
|
||||
|
||||
async click() {
|
||||
|
||||
this.parent.createNews.show();
|
||||
|
||||
this.parent.createNews.center();
|
||||
|
||||
}
|
||||
|
||||
enableREAD() {
|
||||
|
||||
this.show();
|
||||
|
||||
}
|
||||
|
||||
disableREAD() {
|
||||
|
||||
this.hide();
|
||||
|
||||
}
|
||||
|
||||
permission() {
|
||||
|
||||
this.allow( groups.admin, "READ" );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user