Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Download

Manav Rathi2541febb534b
diff --git a/web/packages/gallery/components/viewer/photoswipe.ts b/web/packages/gallery/components/viewer/photoswipe.ts
index 2661d2100f..5424c6c3ab 100644
--- a/web/packages/gallery/components/viewer/photoswipe.ts
+++ b/web/packages/gallery/components/viewer/photoswipe.ts
@@ -61,6 +61,14 @@ export interface FileViewerFileAnnotation {
* `true` if the delete action should be shown for this file.
*/
showDelete: boolean;
+ /**
+ * Set if the download action should be shown for this file.
+ *
+ * - When "bar", the action button is shown among the bar icons.
+ *
+ * - When "menu", the action is shown as a more menu entry.
+ */
+ showDownload: "bar" | "menu" | undefined;
/**
* `true` if this is an image which can be edited, _and_ editing is
* possible, and the edit action should therefore be shown for this file.