@@ -8,7 +7,7 @@
{{error}}
Если указанный адрес зарегистрирован, то на него будет выслан новый пароль
-
+
diff --git a/src/app/_modules/auth/forms/forget/auth-form-password-forget.component.ts b/src/app/_modules/auth/forms/forget/auth-form-password-forget.component.ts
index 0354137..fddffcc 100644
--- a/src/app/_modules/auth/forms/forget/auth-form-password-forget.component.ts
+++ b/src/app/_modules/auth/forms/forget/auth-form-password-forget.component.ts
@@ -47,4 +47,11 @@ export class AuthFormPasswordForgetComponent implements OnInit {
let trans = {'The given data was invalid.': 'Указанный адрес почты не найден'};
this.error = trans[error] || error;
}
+
+ login(){
+ this.router.navigate(
+ [ {outlets: {auth: 'login'}}],
+ {skipLocationChange: true}
+ ).then();
+ }
}
diff --git a/src/app/_modules/auth/forms/login/auth-form-login.component.html b/src/app/_modules/auth/forms/login/auth-form-login.component.html
index c1ed254..a1e3929 100644
--- a/src/app/_modules/auth/forms/login/auth-form-login.component.html
+++ b/src/app/_modules/auth/forms/login/auth-form-login.component.html
@@ -1,5 +1,5 @@
diff --git a/src/app/_modules/auth/forms/login/auth-form-login.component.ts b/src/app/_modules/auth/forms/login/auth-form-login.component.ts
index 9fed5d6..d9c8259 100644
--- a/src/app/_modules/auth/forms/login/auth-form-login.component.ts
+++ b/src/app/_modules/auth/forms/login/auth-form-login.component.ts
@@ -49,4 +49,18 @@ export class AuthFormLoginComponent implements OnInit {
let trans = {'The user credentials were incorrect.': 'Имя пользователя или пароль указаны неверно.'};
this.error = trans[error] || error;
}
+
+ forget(){
+ this.router.navigate(
+ [ {outlets: {auth: 'password/forget'}}],
+ {skipLocationChange: true}
+ ).then();
+ }
+
+ signup(){
+ this.router.navigate(
+ [ {outlets: {auth: 'signup'}}],
+ {skipLocationChange: true}
+ ).then();
+ }
}
diff --git a/src/app/_modules/auth/page/auth-page.component.ts b/src/app/_modules/auth/page/auth-page.component.ts
index 76ca9d4..c85456d 100644
--- a/src/app/_modules/auth/page/auth-page.component.ts
+++ b/src/app/_modules/auth/page/auth-page.component.ts
@@ -6,7 +6,7 @@ import {Router} from "@angular/router";
templateUrl: 'auth-page.component.html',
styleUrls: ['auth-page.component.scss']
})
-export class AuthPageComponent implements OnInit {
+export class AuthPageComponent {
constructor(private router: Router) {
}
@@ -14,8 +14,5 @@ export class AuthPageComponent implements OnInit {
return this.router.url.split('?')[0].split('(')[0].split('/').slice(1, 3).join('/');
}
- ngOnInit() {
- }
-
}
diff --git a/src/app/_modules/layout/footer/footer.component.ts b/src/app/_modules/layout/footer/footer.component.ts
index 61a6cad..2d5fadf 100644
--- a/src/app/_modules/layout/footer/footer.component.ts
+++ b/src/app/_modules/layout/footer/footer.component.ts
@@ -1,6 +1,5 @@
import {Component} from '@angular/core';
import {AuthenticationService} from "@app/_services";
-import {Subscription} from "rxjs";
@Component({
selector: 'footer',
diff --git a/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts b/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts
index 14a1c23..cd4188a 100644
--- a/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts
+++ b/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts
@@ -1,7 +1,6 @@
import {Component, Input} from '@angular/core';
import {AuthenticationService} from "@app/_services";
import {Router} from "@angular/router";
-import {Subscription} from "rxjs";
import { PagesService } from '@app/_services/pages.service';
@@ -13,7 +12,6 @@ import { PagesService } from '@app/_services/pages.service';
export class HeaderUserBarComponent {
public menuItems =
[];
public ddHidden = true;
- subscriptionUser: Subscription;
constructor(public authService: AuthenticationService, private router: Router, private pagesService: PagesService) {
}
diff --git a/src/app/_services/authentication.service.ts b/src/app/_services/authentication.service.ts
index 7443c36..904fb54 100644
--- a/src/app/_services/authentication.service.ts
+++ b/src/app/_services/authentication.service.ts
@@ -88,7 +88,9 @@ export class AuthenticationService {
popup(path: any) {
- this.router.navigate([path]).then();
- //this.router.navigate([ {outlets: {auth: path}}], {skipLocationChange: true}).then();
+ this.router.navigate(
+ [ {outlets: {auth: path}}],
+ {skipLocationChange: true}
+ ).then();
}
}
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index 7fb86bf..ce30fb1 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -6,7 +6,7 @@ export const environment = {
production: false,
apiUrl: 'http://api.nircms.lc',
clientId: 2,
- clientSecret: 'gVk3jjKq6rWWM52025xgXlw2XGW1UACowyMIyhRR',
+ clientSecret: 'E4BoAclC9X3gre4Wr4XXmU3Y7sXTEtFSk3iCSkIm',
project: null,
defaultLocale: 'ru'
};
diff --git a/src/environments/vniigaz-v2.env.dev.ts b/src/environments/vniigaz-v2.env.dev.ts
index 3da4e0e..35abe38 100644
--- a/src/environments/vniigaz-v2.env.dev.ts
+++ b/src/environments/vniigaz-v2.env.dev.ts
@@ -6,7 +6,7 @@ export const environment = {
production: false,
apiUrl: 'http://api.nircms.lc',
clientId: 2,
- clientSecret: 'v49Z7dwUb1cobcTIJ5JQVJBzOFcNyJMzMmiDspUm',
+ clientSecret: 'E4BoAclC9X3gre4Wr4XXmU3Y7sXTEtFSk3iCSkIm',
project: 'vniigaz-v2',
defaultLocale: 'ru'
};
diff --git a/src/vniigaz-v2/component/layout/footer/footer.component.html b/src/vniigaz-v2/component/layout/footer/footer.component.html
index e3e04e2..2225070 100644
--- a/src/vniigaz-v2/component/layout/footer/footer.component.html
+++ b/src/vniigaz-v2/component/layout/footer/footer.component.html
@@ -2,7 +2,7 @@

-
diff --git a/src/vniigaz-v2/component/layout/footer/footer.component.ts b/src/vniigaz-v2/component/layout/footer/footer.component.ts
index 32ee922..2d5fadf 100644
--- a/src/vniigaz-v2/component/layout/footer/footer.component.ts
+++ b/src/vniigaz-v2/component/layout/footer/footer.component.ts
@@ -1,6 +1,5 @@
import {Component} from '@angular/core';
import {AuthenticationService} from "@app/_services";
-import {Subscription} from "rxjs";
@Component({
selector: 'footer',
@@ -8,19 +7,18 @@ import {Subscription} from "rxjs";
styleUrls: ['footer.component.scss']
})
export class FooterComponent {
- subscription: Subscription;
- public user: any;
- constructor(public authenticationService: AuthenticationService) {
- this.subscription = this.authenticationService.user.subscribe(user => {
- this.user = user;
- });
+ constructor(public authService: AuthenticationService) {
+ }
+
+ get isLoggedIn() {
+ return this.authService.isLoggedIn;
}
ngOnInit() {
}
login() {
- this.authenticationService.popup('login');
+ this.authService.popup('login');
}
}
diff --git a/src/vniigaz-v2/css/_basics.scss b/src/vniigaz-v2/css/_basics.scss
index bdc835d..d3dc93a 100644
--- a/src/vniigaz-v2/css/_basics.scss
+++ b/src/vniigaz-v2/css/_basics.scss
@@ -419,6 +419,7 @@ modal{
display: flex;
align-items: center;
justify-content: center;
+ z-index: 10000;
.modal-overlay{
position: fixed;
width: 100vw;
@@ -449,6 +450,9 @@ modal{
h4{
margin: 0;
}
+ ico{
+ cursor: pointer;
+ }
}
.modal-body{
padding: 36px 24px;