bugfix: changed css broke spinner querySelector

This commit is contained in:
djmaze 2021-02-04 22:47:38 +01:00
parent f08dfac99d
commit 92bbaadbf3
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}

View file

@ -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) {