Improved display of root album in move operation.
Root is now shown as the parent of all albums with parent=0.
This commit is contained in:
parent
5ee34c50a4
commit
3040ab1d62
@ -675,11 +675,11 @@ const getMessage = function(albumIDs, titles, operation) {
|
|||||||
// Fallback for second album without a title
|
// Fallback for second album without a title
|
||||||
if (sTitle==='') sTitle = 'Untitled'
|
if (sTitle==='') sTitle = 'Untitled'
|
||||||
|
|
||||||
msg = lychee.html`<p>Are you sure you want to ${ operation } the album '$${ sTitle }' into the album '$${ title }'?</p>`
|
msg = lychee.html`<p>Are you sure you want to ${ operation } the album '$${ sTitle }' into '$${ title }'?</p>`
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
msg = lychee.html`<p>Are you sure you want to ${ operation } all selected albums into the album '$${ title }'?</p>`
|
msg = lychee.html`<p>Are you sure you want to ${ operation } all selected albums into '$${ title }'?</p>`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ contextMenu.moveAlbum = function(albumIDs, e) {
|
|||||||
exclude.push(sub[s])
|
exclude.push(sub[s])
|
||||||
}
|
}
|
||||||
|
|
||||||
items = buildAlbumList(data.albums, exclude, (a) => album.move([ a.id ].concat(albumIDs), [ a.title, title ]))
|
items = buildAlbumList(data.albums, exclude, (a) => album.move([ a.id ].concat(albumIDs), [ a.title, title ]), 0, 1)
|
||||||
|
|
||||||
items.unshift({ title: 'Root', fn: () => album.move([ 0 ].concat(albumIDs), [ 'Root', title ]) })
|
items.unshift({ title: 'Root', fn: () => album.move([ 0 ].concat(albumIDs), [ 'Root', title ]) })
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user