SHC: Permissions viewer integration (#475)

This commit is contained in:
Nuckyz 2023-05-16 14:15:56 -03:00 committed by GitHub
parent 235000cf41
commit 3f2bcd2cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 118 additions and 26 deletions

View file

@ -39,7 +39,7 @@ enum ShowMode {
HiddenIconWithMutedStyle
}
const settings = definePluginSettings({
export const settings = definePluginSettings({
hideUnreads: {
description: "Hide Unreads",
type: OptionType.BOOLEAN,
@ -54,6 +54,11 @@ const settings = definePluginSettings({
{ label: "Muted style with hidden eye icon on the right", value: ShowMode.HiddenIconWithMutedStyle },
],
restartNeeded: true
},
defaultAllowedUsersAndRolesDropdownState: {
description: "Whether the allowed users and roles dropdown on hidden channels should be open by default",
type: OptionType.BOOLEAN,
default: true
}
});