3
0

Add topbar hide theme selector setting

This commit is contained in:
Jože Fortun
2024-02-09 15:20:43 +01:00
parent 5f1b890c51
commit 0c5e12b06e
4 changed files with 9 additions and 0 deletions

View File

@@ -134,6 +134,12 @@
>
{{ $t('profile.hide-change-password-link') }}
</b-form-checkbox>
<b-form-checkbox
v-model="topbarSettings.hideThemeSelector"
>
{{ $t('profile.hide-theme-selector') }}
</b-form-checkbox>
</b-form-group>
</b-col>
<b-col>

View File

@@ -178,6 +178,7 @@
</b-dropdown-item>
<b-dropdown
v-if="!settings.hideThemeSelector"
id="theme-dropleft"
variant="link"
text="Theme"

View File

@@ -79,6 +79,7 @@ editor:
hide: Hide profile
hide-profile-link: Hide profile link
hide-change-password-link: Hide change password link
hide-theme-selector: Hide theme selector
links:
title: Custom links

View File

@@ -264,6 +264,7 @@ type (
HideProfile bool `json:"hideProfile"`
HideChangePasswordLink bool `json:"hideChangePasswordLink"`
HideProfileLink bool `json:"hideProfileLink"`
HideThemeSelector bool `json:"hideThemeSelector"`
HelpLinks []struct {
Handle string `json:"handle"`