iobroker.mywebui 1.37.88 → 1.37.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/io-package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "mywebui",
4
- "version": "1.37.88",
4
+ "version": "1.37.90",
5
5
  "titleLang": {
6
6
  "en": "mywebui",
7
7
  "de": "mywebui",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.mywebui",
3
- "version": "1.37.88",
3
+ "version": "1.37.90",
4
4
  "description": "ioBroker mywebui - Custom edited mywebui by gokturk413",
5
5
  "type": "module",
6
6
  "main": "dist/backend/main.js",
@@ -49,7 +49,7 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
49
49
  npmState;
50
50
  scriptSystem;
51
51
  bindingsHelper;
52
- _editorAnimationsEnabled = false;
52
+ _editorAnimationsEnabled = localStorage.getItem('webui-editor-animations-disabled') === 'true';
53
53
  static style = css `
54
54
  :host {
55
55
  display: block;
@@ -1095,6 +1095,7 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
1095
1095
 
1096
1096
  _setEditorAnimationsEnabled(value) {
1097
1097
  this._editorAnimationsEnabled = value;
1098
+ localStorage.setItem('webui-editor-animations-disabled', value);
1098
1099
  // Sync both checkboxes
1099
1100
  const animCb = this._getDomElement('animationsDock')?.querySelector('#editor-anim-cb');
1100
1101
  const fxCb = this._getDomElement('effectsDock')?.querySelector('#editor-fx-cb');
@@ -1103,7 +1104,7 @@ export class IobrokerWebuiAppShell extends BaseCustomWebComponentConstructorAppe
1103
1104
  // Apply to all open screen editors
1104
1105
  for (const ed of this._dock.querySelectorAll('iobroker-webui-screen-editor')) {
1105
1106
  const canvas = ed.documentContainer?.designerView?.designerCanvas;
1106
- if (canvas) canvas.pauseAnimations = !value;
1107
+ if (canvas) canvas.pauseAnimations = value;
1107
1108
  }
1108
1109
  }
1109
1110
 
@@ -630,7 +630,7 @@ export class IobrokerWebuiScreenEditor extends BaseCustomWebComponentConstructor
630
630
  });
631
631
  // Apply current editor animations state (set by the checkbox in Animations/Effects panels)
632
632
  const canvas = this.documentContainer.designerView.designerCanvas;
633
- if (canvas) canvas.pauseAnimations = !window.appShell._editorAnimationsEnabled;
633
+ if (canvas) canvas.pauseAnimations = window.appShell._editorAnimationsEnabled;
634
634
  }
635
635
  _controlDefaultWidth = '800px';
636
636
  _controlDefaultHeight = '600px';