Prototyping plain table for files list
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user