Shortcut
This commit is contained in:
parent
0e79227002
commit
954201c9ee
@ -6,10 +6,12 @@
|
|||||||
<button mat-flat-button class="w-100 text-white" style="background-color: #dd0330" (click)="new()">
|
<button mat-flat-button class="w-100 text-white" style="background-color: #dd0330" (click)="new()">
|
||||||
<mat-icon>add</mat-icon> New Map
|
<mat-icon>add</mat-icon> New Map
|
||||||
</button>
|
</button>
|
||||||
<div class="input-group w-100 mt-3">
|
<div class="w-100 mt-3">
|
||||||
<input type="text" #code class="form-control" placeholder="Code">
|
<form class="input-group">
|
||||||
<div class="input-group-append">
|
<input type="text" class="form-control" [(ngModel)]="code" name="code" placeholder="Code">
|
||||||
<button class="btn btn-danger" [routerLink]="[code.value]" style="background-color: #dd0330">Open</button>
|
<div class="input-group-append">
|
||||||
</div>
|
<button class="btn btn-danger" [routerLink]="['/', code]" style="background-color: #dd0330">Open</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,7 +10,7 @@ const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
|||||||
styleUrls: ['home.component.scss']
|
styleUrls: ['home.component.scss']
|
||||||
})
|
})
|
||||||
export class HomeComponent {
|
export class HomeComponent {
|
||||||
splash = true;
|
code: string;
|
||||||
|
|
||||||
constructor(private syncService: SyncService, private router: Router) { }
|
constructor(private syncService: SyncService, private router: Router) { }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user