mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Force to choose a channel to reorder playlists
This commit is contained in:
parent
42bf34c29a
commit
3d75a7288f
2 changed files with 9 additions and 11 deletions
|
@ -1,5 +1,4 @@
|
||||||
@if (user.videoChannels.length > 1) {
|
<div class="form-group">
|
||||||
<div class="form-group">
|
|
||||||
<div class="label" i18n>Filter by a channel</div>
|
<div class="label" i18n>Filter by a channel</div>
|
||||||
<div class="form-group-description" i18n>This allows you to reorder playlists assigned to it</div>
|
<div class="form-group-description" i18n>This allows you to reorder playlists assigned to it</div>
|
||||||
|
|
||||||
|
@ -8,8 +7,7 @@
|
||||||
<my-channel-toggle [channel]="channel" [(ngModel)]="channel.selected" (ngModelChange)="onChannelFilter(channel)"></my-channel-toggle>
|
<my-channel-toggle [channel]="channel" [(ngModel)]="channel.selected" (ngModelChange)="onChannelFilter(channel)"></my-channel-toggle>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
|
|
||||||
<my-table
|
<my-table
|
||||||
#table
|
#table
|
||||||
|
|
|
@ -212,7 +212,7 @@ export class MyVideoPlaylistsComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
hasReorderableRows () {
|
hasReorderableRows () {
|
||||||
return !!this.getFilteredChannel() || this.user.videoChannels.length === 1
|
return !!this.getFilteredChannel()
|
||||||
}
|
}
|
||||||
|
|
||||||
private _dataLoader (options: {
|
private _dataLoader (options: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue