Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. For commit
- file watcher not working for files (#2314)
- "source" type link shows up multiple times when adding sidebar links if user has multiple sources.
- JWT ES256 results in error (#2188)
- single file shares not loading editor text content (#2122)

## v1.3.5

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/views/files/DocViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ export default defineComponent({
listing = [state.req]; // Fallback to current item only
}
} else {
// Shouldn't happen, but fallback to current item
console.error("No listing found DocViewer.vue");
listing = [state.req];
}
Expand Down
11 changes: 8 additions & 3 deletions frontend/src/views/files/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ export default {
// Check if state and route are synchronized
isStateSynced() {
if (this.viewerMode) return true;
if (!this.routeFilename || !this.originalReq) return false;
if (!this.originalReq || !this.req) return false;
if (getters.isShare()) {
const subPath = state.shareInfo?.subPath;
if (subPath === undefined || subPath === null) return false;
if (!url.pathsMatch(this.req.path, subPath)) return false;
return url.pathsMatch(this.originalReq.path, this.req.path);
}
if (!this.routeFilename) return false;
return this.originalReq.name === this.routeFilename;
},
// Editor content to display
Expand Down Expand Up @@ -284,8 +291,6 @@ export default {
listing = [this.req];
}
} else {
console.error("No listing found Editor.vue");
// Shouldn't happen, but fallback to current item
listing = [this.req];
}
Expand Down
9 changes: 1 addition & 8 deletions frontend/src/views/files/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@
</div>

<div v-else-if="isPdf" class="pdf-wrapper">
<iframe class="pdf" :src="raw"></iframe>
<a v-if="isMobileSafari" :href="raw" target="_blank" class="button button--flat floating-btn">
<div>
<i class="material-symbols">open_in_new</i>{{ $t("general.openFile") }}
</div>
</a>
<iframe allow="web-share" class="pdf" :src="raw"></iframe>
</div>

<div v-else class="info">
Expand Down Expand Up @@ -460,8 +455,6 @@ export default {
this.listing = [state.req];
}
} else {
console.error("No listing found Preview.vue");
// Shouldn't happen, but fallback to current item
this.listing = [state.req];
}
}
Expand Down
Loading