diff options
author | Louis Chemineau <louis@chmn.me> | 2022-02-03 15:11:18 +0300 |
---|---|---|
committer | Jonas <jonas@freesources.org> | 2022-02-03 16:57:21 +0300 |
commit | a74c263b5baf345d139e6b8b3b1bae21e17d4e64 (patch) | |
tree | 0b941956ea546541df603b7a89a16ed27400d708 /src | |
parent | 7d45a380410baad08d7b325e11ac44dc813fbbca (diff) |
Use file.path to track more accurately EditorWrapper instances
This fixes rich workspace loading when moving a Readme.md into a folder
and navigating into that folder.
The file.id stay the same, so no new components are created and RichWorkspace stays in an ready=false state because EditorWrapper never emit a new ready event.
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/RichWorkspace.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index cd85a9bf1..2e6b03dd5 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -30,7 +30,7 @@ <EditorWrapper v-if="file" v-show="ready" - :key="file.id" + :key="file.path" :file-id="file.id" :relative-path="file.path" :share-token="shareToken" |