viewer: restore delete and edit (fix #153, fix #151)

pull/162/head
Varun Patil 2022-11-03 13:30:08 -07:00
parent 66ff46cc84
commit d8632c9814
2 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export async function getFiles(photos: IPhoto[]): Promise<IFileInfo[]> {
mime: photo.mimetype, mime: photo.mimetype,
hasPreview: true, hasPreview: true,
etag: photo.etag, etag: photo.etag,
permissions: "RWD",
} as IFileInfo; } as IFileInfo;
}) })
); );

View File

@ -19,6 +19,8 @@ export type IFileInfo = {
flag?: number; flag?: number;
/** MIME type of file */ /** MIME type of file */
mime?: string; mime?: string;
/** WebDAV permissions string */
permissions?: string;
}; };
export type IDay = { export type IDay = {