button icons

This commit is contained in:
2020-04-26 13:27:27 +02:00
committed by smuddy
parent 148621f358
commit 3b6bebcbac
28 changed files with 133 additions and 26 deletions

View File

@@ -1,5 +1,5 @@
<div>
<app-card>
<app-card closeLink="../">
<h1>Neue Veranstaltung</h1>
<div [formGroup]="form" class="split">
@@ -23,8 +23,7 @@
</div>
<app-button-row>
<button (click)="onSave()" color="primary" mat-flat-button>Anlegen</button>
<button mat-button routerLink="/show">Abbrechen</button>
<app-button (click)="onSave()" [icon]="faSave">Anlegen</app-button>
</app-button-row>
</app-card>
</div>

View File

@@ -5,6 +5,7 @@ import {Show} from '../services/show';
import {ShowService} from '../services/show.service';
import {FormControl, FormGroup, Validators} from '@angular/forms';
import {Router} from '@angular/router';
import {faSave} from '@fortawesome/free-solid-svg-icons/faSave';
@Component({
selector: 'app-new',
@@ -16,6 +17,7 @@ export class NewComponent implements OnInit {
public showTypePublic = ShowService.SHOW_TYPE_PUBLIC;
public showTypePrivate = ShowService.SHOW_TYPE_PRIVATE;
public form: FormGroup;
public faSave = faSave;
constructor(private showService: ShowService, showDataService: ShowDataService, private router: Router) {
this.shows$ = showDataService.list$();