Enabled/Disbaled bad for UI

This commit is contained in:
Core 2022-01-30 03:16:03 +00:00
parent 2164a5798a
commit 63025dc915
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -557,12 +557,7 @@
{{$root.getLz('settings.option.experimental.compactUI')}}
</div>
<div class="md-option-segment md-option-segment_auto">
<button class="md-btn"
:class="{'md-btn-primary': app.cfg.advanced.experiments.includes('compactui')}"
@click="app.cfg.advanced.experiments.includes('compactui') ? removeExperiment('compactui') : addExperiment('compactui')">
{{app.cfg.advanced.experiments.includes('compactui') ? $root.getLz('term.disabled') :
$root.getLz('term.enabled')}}
</button>
<input type="checkbox" v-model="app.cfg.advanced.experiments.includes('compactui')" @click="app.cfg.advanced.experiments.includes('compactui') ? removeExperiment('compactui') : addExperiment('compactui')" switch/>
</div>
</div>
@ -748,7 +743,7 @@
},
sendDataToMTT: function () {
ipcRenderer.invoke('setStoreValue', 'general.close_behavior', app.cfg.general.close_behavior);
}
},
}
})
</script>