feat(stalker): add stalker related inputs to playlist-info dialog

This commit is contained in:
4gray committed 2023-08-07 09:56:45 +02:00
1 parent fd001c26ce
commit 1ac733cfa8
2 files changed
+15 -1

No files matched your search

@@ -12,6 +12,18 @@
}}</mat-label>
<input formControlName="title" matInput />
</mat-form-field>
<mat-form-field class="full-width" *ngIf="playlist.portalUrl">
<mat-label>{{
'HOME.PLAYLISTS.INFO_DIALOG.SERVER_URL' | translate
}}</mat-label>
<input matInput formControlName="portalUrl" />
</mat-form-field>
<mat-form-field class="full-width" *ngIf="playlist.macAddress">
<mat-label>{{
'HOME.PLAYLISTS.INFO_DIALOG.MAC_ADDRESS' | translate
}}</mat-label>
<input matInput formControlName="macAddress" />
</mat-form-field>
<mat-form-field class="full-width" *ngIf="playlist.serverUrl">
<mat-label>{{
'HOME.PLAYLISTS.INFO_DIALOG.SERVER_URL' | translate
@@ -89,7 +101,7 @@
mat-flat-button
color="accent"
(click)="exportPlaylist()"
*ngIf="!playlist.serverUrl"
*ngIf="!playlist.serverUrl && !playlist.portalUrl"
>
{{ 'HOME.PLAYLISTS.INFO_DIALOG.EXPORT_PLAYLIST' | translate }}
</button>
@@ -98,6 +98,8 @@ export class PlaylistInfoComponent {
serverUrl: new FormControl(this.playlist.serverUrl),
username: new FormControl(this.playlist.username),
password: new FormControl(this.playlist.password),
macAddress: new FormControl(this.playlist.macAddress),
portalUrl: new FormControl(this.playlist.portalUrl),
});
}