Sfoglia il codice sorgente

ignore dist directory, it seems that those already in will be there for ever.

tags/2.037
Patrick Sun 5 anni fa
parent
commit
c7df134863
3 ha cambiato i file con 13 aggiunte e 10 eliminazioni
  1. +1
    -0
      .gitignore
  2. +1
    -0
      src/app/auth/dist/auth.component.css
  3. +11
    -10
      src/app/auth/dist/auth.component.js

+ 1
- 0
.gitignore Vedi File

@@ -48,3 +48,4 @@ Thumbs.db
#dist file
src/app/dist/*
src/app/dist/main-menu-items.js
dist/*

+ 1
- 0
src/app/auth/dist/auth.component.css Vedi File

@@ -8,6 +8,7 @@ div.parent {
height: 100vh;
opacity: 0.95;
background: url("../../assets/img/body_bg.jpg") no-repeat center center fixed;
background-size: cover;
}

.form_login {

+ 11
- 10
src/app/auth/dist/auth.component.js Vedi File

@@ -21,14 +21,7 @@ var AuthComponent = /** @class */ (function () {
}
AuthComponent.prototype.ngOnInit = function () {
var _this = this;
this.loginSub = this.authService.loginSuccess.subscribe(function (ok) {
_this.loading = false;
console.log(" found login success " + ok);
if (ok)
_this.rounter.navigate(["/dashboard"]);
else
_this.show();
});
this.loginSub = this.authService.loginSuccess.subscribe(function (ok) { _this.onLogin(ok); });
};
AuthComponent.prototype.ngOnDestroy = function () {
this.loginSub.unsubscribe();
@@ -38,14 +31,22 @@ var AuthComponent = /** @class */ (function () {
this.loading = true;
this.authService.login(this.userForm.value.email, this.userForm.value.password);
};
AuthComponent.prototype.onLogin = function (ok) {
this.loading = false;
console.log(" found login success " + ok);
if (ok)
this.rounter.navigate(["/dashboard"]);
else
this.show();
};
AuthComponent.prototype.show = function () {
this.notificationService.show({
content: 'Your loggin is failed, please try again.',
cssClass: 'button-notification',
animation: { type: 'slide', duration: 400 },
position: { horizontal: 'center', vertical: 'bottom' },
position: { horizontal: 'center', vertical: 'top' },
type: { style: 'error', icon: true },
closable: true
hideAfter: 2000
});
};
AuthComponent = __decorate([

Loading…
Annulla
Salva