2022-10-03 13:11:29 +00:00
|
|
|
import ngModule from '../module';
|
|
|
|
import Section from 'salix/components/section';
|
|
|
|
|
2023-05-11 13:25:37 +00:00
|
|
|
export default class Controller extends Section {
|
2023-05-12 07:02:55 +00:00
|
|
|
get user() {
|
|
|
|
return this._user;
|
|
|
|
}
|
|
|
|
|
2023-05-11 13:25:37 +00:00
|
|
|
set user(value) {
|
|
|
|
this._user = value;
|
|
|
|
if (!value) return;
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 13:11:29 +00:00
|
|
|
|
|
|
|
ngModule.component('vnUserPrivileges', {
|
|
|
|
template: require('./index.html'),
|
2023-05-11 13:25:37 +00:00
|
|
|
controller: Controller,
|
|
|
|
bindings: {
|
|
|
|
user: '<'
|
|
|
|
}
|
2022-10-03 13:11:29 +00:00
|
|
|
});
|