mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Drop bootstrap modal.less by using <dialog> <header> and <footer>
https://snappymail.eu/demo/ updated for testing
This commit is contained in:
parent
880d4a05e9
commit
6170de5aee
70 changed files with 1521 additions and 1709 deletions
|
|
@ -1,19 +1,14 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { Settings } from 'Common/Globals';
|
||||
import { getNotification } from 'Common/Translator';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
import { decorateKoCommands } from 'Knoin/Knoin';
|
||||
import { AbstractViewCenter } from 'Knoin/AbstractViews';
|
||||
import { AbstractViewLogin } from 'Knoin/AbstractViews';
|
||||
|
||||
class LoginAdminView extends AbstractViewCenter {
|
||||
class LoginAdminView extends AbstractViewLogin {
|
||||
constructor() {
|
||||
super('AdminLogin');
|
||||
|
||||
this.hideSubmitButton = Settings.app('hideSubmitButton');
|
||||
|
||||
this.addObservables({
|
||||
login: '',
|
||||
password: '',
|
||||
|
|
@ -26,8 +21,6 @@ class LoginAdminView extends AbstractViewCenter {
|
|||
submitError: ''
|
||||
});
|
||||
|
||||
this.formError = ko.observable(false).extend({ falseTimeout: 500 });
|
||||
|
||||
this.addSubscribables({
|
||||
login: () => this.loginError(false),
|
||||
password: () => this.passwordError(false)
|
||||
|
|
@ -67,14 +60,6 @@ class LoginAdminView extends AbstractViewCenter {
|
|||
|
||||
return valid;
|
||||
}
|
||||
|
||||
onShow() {
|
||||
rl.route.off();
|
||||
}
|
||||
|
||||
submitForm() {
|
||||
// return false;
|
||||
}
|
||||
}
|
||||
|
||||
export { LoginAdminView };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue