Przeglądaj źródła

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

tags/2.037
Patrick Sun 5 lat temu
rodzic
commit
c7df134863
3 zmienionych plików z 13 dodań i 10 usunięć
  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 Wyświetl plik

#dist file #dist file
src/app/dist/* src/app/dist/*
src/app/dist/main-menu-items.js src/app/dist/main-menu-items.js
dist/*

+ 1
- 0
src/app/auth/dist/auth.component.css Wyświetl plik

height: 100vh; height: 100vh;
opacity: 0.95; opacity: 0.95;
background: url("../../assets/img/body_bg.jpg") no-repeat center center fixed; background: url("../../assets/img/body_bg.jpg") no-repeat center center fixed;
background-size: cover;
} }


.form_login { .form_login {

+ 11
- 10
src/app/auth/dist/auth.component.js Wyświetl plik

} }
AuthComponent.prototype.ngOnInit = function () { AuthComponent.prototype.ngOnInit = function () {
var _this = this; 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 () { AuthComponent.prototype.ngOnDestroy = function () {
this.loginSub.unsubscribe(); this.loginSub.unsubscribe();
this.loading = true; this.loading = true;
this.authService.login(this.userForm.value.email, this.userForm.value.password); 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 () { AuthComponent.prototype.show = function () {
this.notificationService.show({ this.notificationService.show({
content: 'Your loggin is failed, please try again.', content: 'Your loggin is failed, please try again.',
cssClass: 'button-notification', cssClass: 'button-notification',
animation: { type: 'slide', duration: 400 }, animation: { type: 'slide', duration: 400 },
position: { horizontal: 'center', vertical: 'bottom' },
position: { horizontal: 'center', vertical: 'top' },
type: { style: 'error', icon: true }, type: { style: 'error', icon: true },
closable: true
hideAfter: 2000
}); });
}; };
AuthComponent = __decorate([ AuthComponent = __decorate([

Ładowanie…
Anuluj
Zapisz