mirror of https://github.com/rancher/dashboard.git
21 lines
502 B
JavaScript
21 lines
502 B
JavaScript
import { MANAGEMENT } from '@/config/types';
|
|
import NormanModel from '@/plugins/steve/norman-class';
|
|
|
|
export default class PRTB extends NormanModel {
|
|
get principalId() {
|
|
return this.userPrincipalId || this.groupPrincipalId;
|
|
}
|
|
|
|
get roleDisplay() {
|
|
return this.roleTemplate.nameDisplay;
|
|
}
|
|
|
|
get roleDescription() {
|
|
return this.roleTemplate.description;
|
|
}
|
|
|
|
get roleTemplate() {
|
|
return this.$rootGetters['management/byId'](MANAGEMENT.ROLE_TEMPLATE, this.roleTemplateId);
|
|
}
|
|
}
|