From 126c8c40f720aa5bf5ee7119bbec2a5af0101772 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 1 Aug 2021 23:35:50 +0200 Subject: [PATCH] bugfix: add modified to dirs Signed-off-by: Stefan Dej --- src/store/files/actions.ts | 3 ++- src/store/files/mutations.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/store/files/actions.ts b/src/store/files/actions.ts index 8d217029..12e6617d 100644 --- a/src/store/files/actions.ts +++ b/src/store/files/actions.ts @@ -64,7 +64,8 @@ export const actions: ActionTree = { commit('setCreateDir', { item: { path: path.length ? path+"/"+dir.dirname : dir.dirname, - root: root + root: root, + modified: dir.modified * 1000 } }) diff --git a/src/store/files/mutations.ts b/src/store/files/mutations.ts index 090003c6..af237618 100644 --- a/src/store/files/mutations.ts +++ b/src/store/files/mutations.ts @@ -200,9 +200,9 @@ export const mutations: MutationTree = { parent.push({ isDirectory: true, filename: dirname, - modified: new Date(), + modified: payload.item.modified ?? new Date(), childrens: [], - }); + }) } },