Skip to content

Commit

Permalink
fix: current folder name in page title (#3200)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdy666 committed May 11, 2024
1 parent c9e05f9 commit e336a25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/Files.vue
Expand Up @@ -45,6 +45,8 @@ import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
import FileListing from "@/views/files/FileListing.vue";
import { StatusError } from "@/api/utils";
import { name } from "../utils/constants";
const Editor = defineAsyncComponent(() => import("@/views/files/Editor.vue"));
const Preview = defineAsyncComponent(() => import("@/views/files/Preview.vue"));
Expand Down Expand Up @@ -148,7 +150,8 @@ const fetchData = async () => {
}
fileStore.updateRequest(res);
document.title = `${res.name} - ${document.title}`;
document.title = `${res.name} - ${t("files.files")} - ${name}`;
} catch (err) {
if (err instanceof Error) {
error.value = err;
Expand Down

0 comments on commit e336a25

Please sign in to comment.