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:
Nils Asmussen 2016-08-13 16:50:05 +02:00
parent 5ee34c50a4
commit 3040ab1d62
2 changed files with 3 additions and 3 deletions

View File

@ -675,11 +675,11 @@ const getMessage = function(albumIDs, titles, operation) {
// Fallback for second album without a title
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 {
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>`
}

View File

@ -242,7 +242,7 @@ contextMenu.moveAlbum = function(albumIDs, e) {
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 ]) })