Hide download photo when downloadable is disabled
This commit is contained in:
parent
b66bdce28d
commit
0cf8e97190
@ -223,10 +223,8 @@ contextMenu = {
|
|||||||
function() { photo.getArchive(photoID) }
|
function() { photo.getArchive(photoID) }
|
||||||
];
|
];
|
||||||
|
|
||||||
items = [
|
items = [["<a class='icon-resize-full'></a> Full Photo", 0]];
|
||||||
["<a class='icon-resize-full'></a> Full Photo", 0],
|
if ((album.json&&album.json.downloadable&&album.json.downloadable==="1"&&lychee.publicMode)||!lychee.publicMode) items.push(["<a class='icon-circle-arrow-down'></a> Download", 1]);
|
||||||
["<a class='icon-circle-arrow-down'></a> Download", 1]
|
|
||||||
];
|
|
||||||
|
|
||||||
contextMenu.show(items, mouse_x, mouse_y, "right");
|
contextMenu.show(items, mouse_x, mouse_y, "right");
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user