Skip to content
This repository has been archived by the owner on Mar 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #220 from junkerm/develop
Browse files Browse the repository at this point in the history
v0.1.11
  • Loading branch information
junkerm authored Jul 13, 2018
2 parents cd334ef + ab516d6 commit 124a46c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h1 class="card-title text-center mb-4 mt-1">{{'login' | translate}}</h1>
</div>
<div ngbDropdown class="d-inline-block" #projectDropdown>
<button class="btn btn-sm btn-outline-primary" id="projectDropdown" ngbDropdownToggle>
{{project || 'project' | translate}}
{{project ? project : ('project' | translate)}}
</button>
<div ngbDropdownMenu aria-labelledby="projectDropdown">
<button *ngFor="let name of projectnames" class="dropdown-item" (click)="project = name">{{name}}</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { NavigatorService } from '../../../../../../navigation/modules/navigator
export class Login implements OnInit {
public username = 'The username';
public password = 'The secret password';
public project = '';
public _project = '';
public projectnames: string[];

public isAuthenticating = false;
Expand All @@ -21,6 +21,15 @@ export class Login implements OnInit {
auth.getProjectNames().then(res => this.projectnames = res);
}

public get project(): string {
return this._project;
}

public set project(project: string) {
this._project = project;
}


ngOnInit() {
this.tryNavigateAway();
}
Expand Down

0 comments on commit 124a46c

Please sign in to comment.