mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
More tabs
This commit is contained in:
parent
3a379d09de
commit
feef7d49e9
@ -16,8 +16,8 @@ limitations under the License.
|
||||
import { _t } from './languageHandler';
|
||||
|
||||
export function levelRoleMap() {
|
||||
const LEVEL_ROLE_MAP = {};
|
||||
LEVEL_ROLE_MAP[undefined] = _t('Default');
|
||||
const LEVEL_ROLE_MAP = {};
|
||||
LEVEL_ROLE_MAP[undefined] = _t('Default');
|
||||
LEVEL_ROLE_MAP[0] = _t('User');
|
||||
LEVEL_ROLE_MAP[50] = _t('Moderator');
|
||||
LEVEL_ROLE_MAP[100] = _t('Admin');
|
||||
@ -25,7 +25,7 @@ export function levelRoleMap() {
|
||||
}
|
||||
|
||||
export function textualPowerLevel(level, userDefault) {
|
||||
const LEVEL_ROLE_MAP = this.levelRoleMap();
|
||||
const LEVEL_ROLE_MAP = this.levelRoleMap();
|
||||
if (LEVEL_ROLE_MAP[level]) {
|
||||
return LEVEL_ROLE_MAP[level] + (level !== undefined ? ` (${level})` : ` (${userDefault})`);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user