mirror of https://github.com/Chocobozzz/PeerTube
Prefer using short UUIDs
parent
b6ee2ec689
commit
fa7a022e01
|
@ -14,7 +14,9 @@
|
|||
<li class="breadcrumb-item active" i18n>Edit</li>
|
||||
|
||||
<li class="breadcrumb-item active" aria-current="page">
|
||||
<a *ngIf="videoPlaylistToUpdate" [routerLink]="[ '/my-library/video-playlists/update', videoPlaylistToUpdate?.uuid ]">{{ videoPlaylistToUpdate?.displayName }}</a>
|
||||
<a *ngIf="videoPlaylistToUpdate" [routerLink]="[ '/my-library/video-playlists/update', videoPlaylistToUpdate?.shortUUID]">
|
||||
{{ videoPlaylistToUpdate?.displayName }}
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
</ol>
|
||||
|
|
|
@ -67,7 +67,7 @@ export class MyVideoPlaylistElementsComponent implements OnInit, OnDestroy {
|
|||
{
|
||||
label: $localize`Update playlist`,
|
||||
iconName: 'edit',
|
||||
linkBuilder: playlist => [ '/my-library', 'video-playlists', 'update', playlist.uuid ]
|
||||
linkBuilder: playlist => [ '/my-library', 'video-playlists', 'update', playlist.shortUUID ]
|
||||
},
|
||||
{
|
||||
label: $localize`Delete playlist`,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<div *ngIf="isRegularPlaylist(playlist)" class="video-playlist-buttons">
|
||||
<my-delete-button label (click)="deleteVideoPlaylist(playlist)"></my-delete-button>
|
||||
|
||||
<my-edit-button label [ptRouterLink]="[ 'update', playlist.uuid ]"></my-edit-button>
|
||||
<my-edit-button label [ptRouterLink]="[ 'update', playlist.shortUUID ]"></my-edit-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
|
||||
<ng-template ptTemplate="rowButtons" let-video>
|
||||
<div class="action-button">
|
||||
<my-edit-button label [ptRouterLink]="[ '/videos', 'update', video.uuid ]"></my-edit-button>
|
||||
<my-edit-button label [ptRouterLink]="[ '/videos', 'update', video.shortUUID ]"></my-edit-button>
|
||||
|
||||
<my-video-actions-dropdown
|
||||
[video]="video" [displayOptions]="videoDropdownDisplayOptions" [moreActions]="moreVideoActions"
|
||||
|
|
|
@ -115,8 +115,8 @@ export class Video implements VideoServerModel {
|
|||
return buildVideoWatchPath({ shortUUID: video.shortUUID || video.uuid })
|
||||
}
|
||||
|
||||
static buildUpdateUrl (video: Pick<Video, 'uuid'>) {
|
||||
return '/videos/update/' + video.uuid
|
||||
static buildUpdateUrl (video: Partial<Pick<Video, 'uuid' | 'shortUUID'>>) {
|
||||
return '/videos/update/' + (video.shortUUID || video.uuid)
|
||||
}
|
||||
|
||||
constructor (hash: VideoServerModel, translations: { [ id: string ]: string } = {}) {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
<div *ngIf="isPrivatePlaylist()" class="alert-private alert alert-warning">
|
||||
<div i18n>This playlist is private so you won't be able to share it with external users</div>
|
||||
|
||||
<a i18n class="peertube-button-link orange-button" [routerLink]="[ '/my-library/video-playlists/update', playlist.uuid ]" target="_blank" rel="noopener noreferrer">
|
||||
<a i18n class="peertube-button-link orange-button" [routerLink]="[ '/my-library/video-playlists/update', playlist.shortUUID ]" target="_blank" rel="noopener noreferrer">
|
||||
Update playlist privacy
|
||||
</a>
|
||||
</div>
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
|
||||
<my-edit-button
|
||||
i18n-label label="Update live settings"
|
||||
[ptRouterLink]="[ '/videos', 'update', video.uuid ]" (click)="dismiss()"
|
||||
[ptRouterLink]="[ '/videos', 'update', video.shortUUID ]" (click)="dismiss()"
|
||||
></my-edit-button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -368,19 +368,19 @@ export class VideoActionsDropdownComponent implements OnChanges {
|
|||
},
|
||||
{
|
||||
label: $localize`Update`,
|
||||
linkBuilder: ({ video }) => [ '/videos/update', video.uuid ],
|
||||
linkBuilder: ({ video }) => [ '/videos/update', video.shortUUID ],
|
||||
iconName: 'edit',
|
||||
isDisplayed: () => this.authService.isLoggedIn() && this.displayOptions.update && this.isVideoUpdatable()
|
||||
},
|
||||
{
|
||||
label: $localize`Studio`,
|
||||
linkBuilder: ({ video }) => [ '/studio/edit', video.uuid ],
|
||||
linkBuilder: ({ video }) => [ '/studio/edit', video.shortUUID ],
|
||||
iconName: 'film',
|
||||
isDisplayed: () => this.authService.isLoggedIn() && this.displayOptions.studio && this.isVideoEditable()
|
||||
},
|
||||
{
|
||||
label: $localize`Stats`,
|
||||
linkBuilder: ({ video }) => [ '/stats/videos', video.uuid ],
|
||||
linkBuilder: ({ video }) => [ '/stats/videos', video.shortUUID ],
|
||||
iconName: 'stats',
|
||||
isDisplayed: () => this.authService.isLoggedIn() && this.displayOptions.stats && this.isVideoStatsAvailable()
|
||||
},
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
</div>
|
||||
</a>
|
||||
|
||||
<my-edit-button *ngIf="owned && touchScreenEditButton" [ptRouterLink]="[ '/my-library', 'video-playlists', playlist.uuid ]"></my-edit-button>
|
||||
<my-edit-button *ngIf="owned && touchScreenEditButton" [ptRouterLink]="[ '/my-library', 'video-playlists', playlist.shortUUID ]"></my-edit-button>
|
||||
|
||||
<div
|
||||
*ngIf="owned" class="more dropdown-root" ngbDropdown #moreDropdown="ngbDropdown" placement="left auto"
|
||||
|
|
|
@ -44,7 +44,7 @@ export class VideoPlaylistMiniatureComponent implements OnInit {
|
|||
|
||||
buildPlaylistUrl () {
|
||||
if (this.toManage) {
|
||||
this.routerLink = [ '/my-library/video-playlists', this.playlist.uuid ]
|
||||
this.routerLink = [ '/my-library/video-playlists', this.playlist.shortUUID ]
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue