pull/37/head
Varun Patil 2022-09-12 21:59:35 -07:00
parent eadd40ec6b
commit b6e709b07b
3 changed files with 4 additions and 2 deletions

View File

@ -203,7 +203,7 @@ class ApiController extends Controller {
return [
"fileid" => $node->getId(),
"name" => $node->getName(),
"is_folder" => 1,
"isfolder" => 1,
"path" => $node->getPath(),
];
}, $sub, []),

View File

@ -21,7 +21,7 @@
:style="{ height: rowHeight + 'px' }">
<div class="photo" v-for="photo of item.photos" :key="photo.fileid">
<Folder v-if="photo.is_folder"
<Folder v-if="photo.isfolder"
:data="photo" :rowHeight="rowHeight" />
<Photo v-else
:data="photo" :rowHeight="rowHeight" :day="item.day"

View File

@ -34,6 +34,8 @@ export type IPhoto = {
isvideo?: boolean;
/** Favorite flag from server */
isfavorite?: boolean;
/** Is this a folder */
isfolder?: boolean;
}
export interface IFolder extends IPhoto {