mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
bugfix: changed css broke spinner querySelector
This commit is contained in:
parent
f08dfac99d
commit
92bbaadbf3
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
2
dev/External/Admin/ko.js
vendored
2
dev/External/Admin/ko.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue