Prototyping plain table for files list

This commit is contained in:
Leo Vasanko
2023-11-02 15:34:37 +00:00
parent 05a16e3037
commit 68a701538b
4 changed files with 112 additions and 134 deletions

View File

@@ -5,8 +5,9 @@ import Client from '@/repositories/Client'
type BaseDocument = {
name: string;
key?: number | string;
name: string
key?: number | string
selected?: boolean
};
export type FolderDocument = BaseDocument & {
@@ -60,7 +61,7 @@ export class DocumentHandler {
}
private handleRootMessage({ root }: { root: FileStructure }) {
if (this.store && this.store.root) {
if (this.store && this.store.root) {
this.store.user.isLoggedIn = true;
this.store.root = root;
}
@@ -68,7 +69,7 @@ export class DocumentHandler {
private handleUpdateMessage(updateData: { update: FileStructure[] }) {
const root = updateData.update[0]
if(root) {
if(root) {
this.store.user.isLoggedIn = true;
this.store.root = root
}