Интерфейс)

This commit is contained in:
2017-05-15 01:02:23 +03:00
parent ada109d090
commit 0f721b85d6
2 changed files with 13 additions and 9 deletions

View File

@@ -1,22 +1,19 @@
<md-toolbar color="primary"> <md-toolbar color="primary">
<span>Log Manager</span> <span>Log Manager</span>
<span style="flex: 1 1 auto;"></span> <span style="flex: 1 1 auto;"></span>
<span><button md-raised-button color="warn">Выхода нет</button></span> <span><button (click)="Exit();" md-raised-button color="warn">Выхода нет</button></span>
</md-toolbar> </md-toolbar>
<md-card> <md-card *ngIf="!showCon">
<md-input-container> <md-input-container>
<input mdInput placeholder="Пароль" type="password"> <input (change)="pass=$event.target.value" mdInput placeholder="Пароль" type="password" id="password">
</md-input-container> </md-input-container>
<button (click)="showCon=!showCon" md-raised-button>Расшифровать заголовки</button> <button (click)="Decrypt();" md-raised-button>Расшифровать заголовки</button>
</md-card> </md-card>
<div *ngIf="showCon;else empty" class="app-content"> <div *ngIf="showCon" class="app-content">
<md-card> <md-card>
<md-checkbox>Kek</md-checkbox><p></p> <md-checkbox>Kek</md-checkbox><p></p>
<button md-raised-button>Toggle</button> <button md-raised-button>Toggle</button>
</md-card> </md-card>
</div> </div>
<ng-template #empty>
</ng-template>

View File

@@ -6,5 +6,12 @@ import { Component } from '@angular/core';
styleUrls: ['./app.component.css'] styleUrls: ['./app.component.css']
}) })
export class AppComponent { export class AppComponent {
//title = 'app works!'; showCon = false;
pass: string;
Exit(): void {
this.showCon = false;
}
Decrypt(): void {
this.showCon = true;
}
} }