This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
keycloak-theme/keycloak-themes/keycloak.v2/account/resources/content/my-resources-page/resource-model.js
T
2022-07-04 10:47:36 +02:00

16 lines
323 B
JavaScript

export class Scope {
constructor(name, displayName) {
this.name = name;
this.displayName = displayName;
}
toString() {
if (this.hasOwnProperty('displayName') && this.displayName) {
return this.displayName;
} else {
return this.name;
}
}
}
//# sourceMappingURL=resource-model.js.map