mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 16:20:04 +00:00
Various improvements to game management interface
This commit is contained in:
@@ -10,6 +10,6 @@
|
||||
</form>
|
||||
</mat-dialog-content>
|
||||
<mat-dialog-actions align="end">
|
||||
<button mat-raised-button mat-dialog-close color="accent">Cancel</button>
|
||||
<button mat-raised-button (click)="submit()">OK</button>
|
||||
<button mat-raised-button [mat-dialog-close]="false" color="accent">Cancel</button>
|
||||
<button mat-raised-button (click)="submit()" [disabled]="newSlugInput?.value?.length < 1" color="primary">OK</button>
|
||||
</mat-dialog-actions>
|
||||
|
||||
@@ -27,11 +27,11 @@ export class MapGameDialogComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
close() {
|
||||
this.dialogRef.close();
|
||||
}
|
||||
|
||||
submit(): void {
|
||||
this.libraryManagementService.mapGame(new PathToSlugDto(this.newSlugInput.value, this.path)).subscribe(() => this.close())
|
||||
this.libraryManagementService.mapGame(new PathToSlugDto(this.newSlugInput.value, this.path)).subscribe({
|
||||
next: () => this.dialogRef.close(true),
|
||||
error: () => this.dialogRef.close(false)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user