diff --git a/src/app/metadata-edit/metadata-edit.component.html b/src/app/metadata-edit/metadata-edit.component.html index 9eecc1a0..49c98cec 100644 --- a/src/app/metadata-edit/metadata-edit.component.html +++ b/src/app/metadata-edit/metadata-edit.component.html @@ -5,6 +5,17 @@ Title + + + Aliases + + + {{alias}} + cancel + + + + Overview @@ -52,10 +63,10 @@ Studio - - - + + {{studio.name}} diff --git a/src/app/metadata-edit/metadata-edit.component.ts b/src/app/metadata-edit/metadata-edit.component.ts index a585648e..da2602d2 100644 --- a/src/app/metadata-edit/metadata-edit.component.ts +++ b/src/app/metadata-edit/metadata-edit.component.ts @@ -43,6 +43,22 @@ export class MetadataEditComponent implements OnInit this.dialogRef.close(this.show); }); } + + addAlias(event: MatChipInputEvent) + { + const input = event.input; + const value = event.value; + + this.show.aliases.push(value); + if (input) + input.value = ""; + } + + removeAlias(alias: string) + { + const i = this.show.aliases.indexOf(alias); + this.show.aliases.splice(i, 1); + } addGenre(event: MatChipInputEvent) { @@ -57,8 +73,6 @@ export class MetadataEditComponent implements OnInit removeGenre(genre: Genre): void { - console.log("Removing a genre"); - console.log(genre); const i = this.show.genres.indexOf(genre); this.show.genres.splice(i, 1); }