mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Rename files
This commit is contained in:
27
ts/util/getAccessControlOptions.std.ts
Normal file
27
ts/util/getAccessControlOptions.std.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { LocalizerType } from '../types/Util.std.js';
|
||||
import { SignalService as Proto } from '../protobuf/index.std.js';
|
||||
|
||||
const AccessControlEnum = Proto.AccessControl.AccessRequired;
|
||||
|
||||
type AccessControlOption = {
|
||||
text: string;
|
||||
value: number;
|
||||
};
|
||||
|
||||
export function getAccessControlOptions(
|
||||
i18n: LocalizerType
|
||||
): Array<AccessControlOption> {
|
||||
return [
|
||||
{
|
||||
text: i18n('icu:GroupV2--all-members'),
|
||||
value: AccessControlEnum.MEMBER,
|
||||
},
|
||||
{
|
||||
text: i18n('icu:GroupV2--only-admins'),
|
||||
value: AccessControlEnum.ADMINISTRATOR,
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user