mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(expressions): remove the unfinished packs feature (#2250)
This commit is contained in:
1 parent
0eef611b6d
commit
b8f8d8d859
159 files changed
+42
-6863
No files matched your search
@@ -5,7 +5,6 @@ import type {Channel} from '@app/features/channel/models/Channel';
|
||||
import Channels from '@app/features/channel/state/Channels';
|
||||
import {UNKNOWN_CHANNEL_DESCRIPTOR} from '@app/features/channel/utils/ChannelMessageDescriptors';
|
||||
import * as ChannelUtils from '@app/features/channel/utils/ChannelUtils';
|
||||
import DeveloperOptions from '@app/features/devtools/state/DeveloperOptions';
|
||||
import type {Guild} from '@app/features/guild/models/Guild';
|
||||
import Guilds from '@app/features/guild/state/Guilds';
|
||||
import {
|
||||
@@ -323,12 +322,7 @@ export function buildCandidateSets(i18n: I18n): CandidateSets {
|
||||
});
|
||||
}
|
||||
const settingsCandidates: Array<SettingsCandidate> = [];
|
||||
const hasExpressionPackAccess =
|
||||
(Users.getCurrentUser()?.isStaff() ?? false) && DeveloperOptions.showExpressionPacksSettings;
|
||||
const accessibleTabs = getSettingsTabs(i18n).filter((tab) => {
|
||||
if (!hasExpressionPackAccess && tab.type === 'expression_packs') {
|
||||
return false;
|
||||
}
|
||||
if (!UserSettings.developerMode && (tab.type === 'embed_debugger' || tab.type === 'component_gallery')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user