jwtbutler 2.0.0 → 2.0.1
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/_js/_build/script.js +2 -0
- package/package.json +1 -1
package/_js/_build/script.js
CHANGED
|
@@ -658,6 +658,7 @@ class jwtbutler {
|
|
|
658
658
|
});
|
|
659
659
|
} else {
|
|
660
660
|
this.removeLoadingStates();
|
|
661
|
+
this.addLoadingState('login-form-visible');
|
|
661
662
|
this.captchaReset(form);
|
|
662
663
|
form.insertAdjacentHTML('afterbegin', '<div class="' + this.config.login_form_class + '__error">' + this.responseMessage(response) + '</div>');
|
|
663
664
|
}
|
|
@@ -678,6 +679,7 @@ class jwtbutler {
|
|
|
678
679
|
resolve();
|
|
679
680
|
}).catch(response => {
|
|
680
681
|
this.removeLoadingStates();
|
|
682
|
+
this.addLoadingState('login-form-visible');
|
|
681
683
|
form.insertAdjacentHTML('afterbegin', '<div class="' + this.config.login_form_class + '__error">' + this.responseMessage(response) + '</div>');
|
|
682
684
|
});
|
|
683
685
|
e.preventDefault();
|