Disable a setting if it's managed by a theme
This commit is contained in:
parent
8d3cd1c11b
commit
26b3e38b43
1 changed files with 4 additions and 2 deletions
|
@ -386,10 +386,11 @@
|
|||
<div class="md-option-line">
|
||||
<div class="md-option-segment">
|
||||
{{$root.getLz("settings.option.visual.windowStyle")}}
|
||||
<small v-if="app.getThemeDirective('forceUI')">Managed by a theme</small>
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<label>
|
||||
<select class="md-select" v-model="$root.cfg.visual.directives.windowLayout">
|
||||
<select class="md-select" v-model="$root.cfg.visual.directives.windowLayout" :disabled="app.getThemeDirective('windowLayout')">
|
||||
<option value="default">Maverick</option>
|
||||
<option value="twopanel">Mojave</option>
|
||||
</select>
|
||||
|
@ -1215,12 +1216,13 @@
|
|||
<div class="md-option-line">
|
||||
<div class="md-option-segment">
|
||||
{{$root.getLz('settings.option.experimental.compactUI')}}
|
||||
<small v-if="app.getThemeDirective('forceUI')">Managed by a theme</small>
|
||||
</div>
|
||||
<div class="md-option-segment md-option-segment_auto">
|
||||
<label>
|
||||
<input type="checkbox" v-model="app.cfg.advanced.experiments.includes('compactui')"
|
||||
@click="app.cfg.advanced.experiments.includes('compactui') ? removeExperiment('compactui') : addExperiment('compactui')"
|
||||
switch/>
|
||||
switch :disabled="app.getThemeDirective('forceUI')"/>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue