From 92bbaadbf3cedda546b047ff000792da56b3f11f Mon Sep 17 00:00:00 2001 From: djmaze Date: Thu, 4 Feb 2021 22:47:38 +0100 Subject: [PATCH] bugfix: changed css broke spinner querySelector --- dev/Component/SaveTrigger.js | 2 +- dev/External/Admin/ko.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/Component/SaveTrigger.js b/dev/Component/SaveTrigger.js index 166535547..d48ae6d3e 100644 --- a/dev/Component/SaveTrigger.js +++ b/dev/Component/SaveTrigger.js @@ -31,7 +31,7 @@ export class SaveTriggerComponent extends AbstractComponent { setState(value) { value = parseInt(value,10); - this.element.querySelector('.animated').hidden = value !== SaveSettingsStep.Animate; + this.element.querySelector('.icon-spinner').hidden = value !== SaveSettingsStep.Animate; this.element.querySelector('.success').hidden = value !== SaveSettingsStep.TrueResult; this.element.querySelector('.error').hidden = value !== SaveSettingsStep.FalseResult; } diff --git a/dev/External/Admin/ko.js b/dev/External/Admin/ko.js index 36aeecd82..824794c98 100644 --- a/dev/External/Admin/ko.js +++ b/dev/External/Admin/ko.js @@ -23,7 +23,7 @@ ko.bindingHandlers.saveTrigger = { update: (element, fValueAccessor) => { const value = parseInt(ko.unwrap(fValueAccessor()),10); if ('custom' === element.saveTriggerType) { - element.querySelector('.animated').hidden = value !== SaveSettingsStep.Animate; + element.querySelector('.icon-spinner').hidden = value !== SaveSettingsStep.Animate; element.querySelector('.success').hidden = value !== SaveSettingsStep.TrueResult; element.querySelector('.error').hidden = value !== SaveSettingsStep.FalseResult; } else if (value !== SaveSettingsStep.Animate) {