mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +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
|
|
@ -2,7 +2,7 @@ import ko from 'ko';
|
|||
|
||||
import { inFocus, addObservablesTo, addComputablesTo, addSubscribablesTo } from 'Common/Utils';
|
||||
import { Scope } from 'Common/Enums';
|
||||
import { keyScope } from 'Common/Globals';
|
||||
import { keyScope, Settings } from 'Common/Globals';
|
||||
import { ViewType } from 'Knoin/Knoin';
|
||||
|
||||
class AbstractView {
|
||||
|
|
@ -12,6 +12,7 @@ class AbstractView {
|
|||
this.viewModelTemplateID = templateID;
|
||||
this.viewType = type;
|
||||
this.viewModelDom = null;
|
||||
this.viewNoUserSelect = false;
|
||||
|
||||
this.keyScope = {
|
||||
scope: Scope.None,
|
||||
|
|
@ -122,3 +123,23 @@ export class AbstractViewSettings
|
|||
viewModelDom
|
||||
}
|
||||
*/
|
||||
|
||||
export class AbstractViewLogin extends AbstractViewCenter {
|
||||
constructor(templateID) {
|
||||
super(templateID);
|
||||
this.hideSubmitButton = Settings.app('hideSubmitButton');
|
||||
this.formError = ko.observable(false).extend({ falseTimeout: 500 });
|
||||
}
|
||||
|
||||
onBuild(dom) {
|
||||
dom.classList.add('LoginView');
|
||||
}
|
||||
|
||||
onShow() {
|
||||
rl.route.off();
|
||||
}
|
||||
|
||||
submitForm() {
|
||||
// return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue