mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ADF-2553] added select box and updating role (#3148)
* [ADF-2553] start adding dropdown * [ADF-2553] added select box and updating role * [ADF-2553] added some fixes * [ADF-2554] added test for component phase 1 * [ADF-2553] fixed error and added tests * [ADF-2553] added documentation and improved api call
This commit is contained in:
@@ -15,19 +15,22 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export class PermissionDisplayModel {
|
||||
accessStatus: string;
|
||||
authorityId: string;
|
||||
name: string;
|
||||
import { PermissionElement } from 'alfresco-js-api';
|
||||
|
||||
export class PermissionDisplayModel implements PermissionElement {
|
||||
|
||||
authorityId?: string;
|
||||
name?: string;
|
||||
accessStatus?: PermissionElement.AccessStatusEnum;
|
||||
isInherited: boolean = false;
|
||||
icon: string;
|
||||
|
||||
constructor(obj?: any) {
|
||||
if (obj) {
|
||||
this.accessStatus = obj.accessStatus;
|
||||
this.authorityId = obj.authorityId;
|
||||
this.name = obj.name;
|
||||
this.isInherited = obj.isInherited;
|
||||
this.accessStatus = obj.accessStatus;
|
||||
this.isInherited = obj.isInherited !== null && obj.isInherited !== undefined ? obj.isInherited : false;
|
||||
this.icon = obj.icon ? obj.icon : 'lock_open';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user