forked from mystiq/hydrogen-web
Move condition to binding
This commit is contained in:
parent
0984aeb570
commit
e63440527a
1 changed files with 2 additions and 2 deletions
|
@ -97,8 +97,8 @@ export class SettingsView extends TemplateView {
|
||||||
settingNodes.push(
|
settingNodes.push(
|
||||||
t.h3("Preferences"),
|
t.h3("Preferences"),
|
||||||
row(t, vm.i18n`Scale down images when sending`, this._imageCompressionRange(t, vm)),
|
row(t, vm.i18n`Scale down images when sending`, this._imageCompressionRange(t, vm)),
|
||||||
t.if(vm => vm.activeTheme, (t, vm) => {
|
t.if(vm => !import.meta.env.DEV && vm.activeTheme, (t, vm) => {
|
||||||
return !import.meta.env.DEV? row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm)): null;
|
return row(t, vm.i18n`Use the following theme`, this._themeOptions(t, vm));
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
settingNodes.push(
|
settingNodes.push(
|
||||||
|
|
Loading…
Reference in a new issue