removed signup button from menu header

This commit is contained in:
fabio.formosa
2019-04-26 14:56:53 +02:00
parent df59999034
commit f39db9728c
4 changed files with 5 additions and 20 deletions

View File

@@ -50,7 +50,7 @@ export class ChangePasswordComponent implements OnInit {
this.notification = undefined;
this.submitted = true;
this.authService.changePassowrd(this.form.value)
this.authService.changePassword(this.form.value)
.pipe(delay(1000), mergeMap(() => this.authService.logout()))
.subscribe(() => {
this.router.navigate(['/login', { msgType: 'success', msgBody: 'Success! Please sign in with your new password.'}]);

View File

@@ -3,14 +3,9 @@
<img alt="Quartz Manager" class="app-angular-logo" src="assets/image/angular-white-transparent.svg">
<span>Quartz Manager</span>
</button>
<div class="right">
<div fxFlex="1 1 auto" fxLayout="row" fxLayoutAlign="flex-end center">
<button *ngIf="!hasSignedIn()" routerLink="/signup" mat-button mat-ripple>
<span>Sign up</span>
</button>
<button *ngIf="!hasSignedIn()" routerLink="/login" mat-button mat-ripple>
<span>Login</span>
</button>

View File

@@ -1,7 +1,7 @@
<div class="content" fxLayout="row" fxLayoutAlign="center">
<div class="content" fxLayout="row" fxLayoutAlign="center" style="padding-bottom:160px;">
<mat-card elevation="5" fxFlex>
<mat-card-subtitle>
<h2>Quartz Manager</h2>
</mat-card-subtitle>
@@ -23,20 +23,10 @@
</mat-form-field>
<button type="submit" [disabled]="!loginForm.form.valid" mat-raised-button color="primary">Login</button>
</form>
<!-- <br>
<div *ngIf="!submitted" >
<button matTooltip="Reset password if someone has changed it already!" (click)="onResetCredentials()" mat-raised-button color="accent">Reset Credentials</button>
</div> -->
<mat-spinner *ngIf="submitted" mode="indeterminate"></mat-spinner>
<br>
<hr>
<br>
<p>Default credentials are admin/admin</p>
<br>
<button (click)="repository()" mat-raised-button color="accent" style="color: black">GitHub Repository</button>
<p style="font-size: 0.7em"><i>Created by <a href="https://github.com/fabioformosa" style="color: black;" >Fabio Formosa</a></i></p>
<p> <i style="color: #b5b5b5; font-size: 10px">(Default credentials are admin/admin)</i></p>
</mat-card-content>

View File

@@ -44,7 +44,7 @@ export class AuthService {
}));
}
changePassowrd(passwordChanger) {
changePassword(passwordChanger) {
return this.apiService.post(this.config.change_password_url, passwordChanger);
}