forked from mystiq/hydrogen-web
Use i8n in role
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
862e8569a9
commit
d3ea26a38a
1 changed files with 4 additions and 4 deletions
|
@ -38,10 +38,10 @@ export class MemberDetailsViewModel extends ViewModel {
|
||||||
get previousSegmentName() { return "members"; }
|
get previousSegmentName() { return "members"; }
|
||||||
|
|
||||||
get role() {
|
get role() {
|
||||||
if (this.powerLevel >= 100) { return "Admin"; }
|
if (this.powerLevel >= 100) { return this.i18n`Admin`; }
|
||||||
else if (this.powerLevel >= 50) { return "Moderator"; }
|
else if (this.powerLevel >= 50) { return this.i18n`Moderator`; }
|
||||||
else if (this.powerLevel === 0) { return "Default"; }
|
else if (this.powerLevel === 0) { return this.i18n`Default`; }
|
||||||
else { return `Custom (${this.powerLevel})`; }
|
else { return this.i18n`Custom (${this.powerLevel})`; }
|
||||||
}
|
}
|
||||||
|
|
||||||
_onMemberChange() {
|
_onMemberChange() {
|
||||||
|
|
Loading…
Reference in a new issue