Merge branch 'master' into feature/enhancement

This commit is contained in:
Pietro Tamburini 2024-05-14 16:41:42 +02:00 committed by GitHub
commit cc53973b06
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -117,3 +117,13 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.upload-info{
min-width: 19ch;
width:auto;
text-align: left;
}
</style>

View File

@ -45,6 +45,8 @@ import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import FileListing from "@/views/files/FileListing.vue"; import FileListing from "@/views/files/FileListing.vue";
import { StatusError } from "@/api/utils"; import { StatusError } from "@/api/utils";
import { name } from "../utils/constants";
const Editor = defineAsyncComponent(() => import("@/views/files/Editor.vue")); const Editor = defineAsyncComponent(() => import("@/views/files/Editor.vue"));
const Preview = defineAsyncComponent(() => import("@/views/files/Preview.vue")); const Preview = defineAsyncComponent(() => import("@/views/files/Preview.vue"));
@ -148,7 +150,8 @@ const fetchData = async () => {
} }
fileStore.updateRequest(res); fileStore.updateRequest(res);
document.title = `${res.name} - ${document.title}`; document.title = `${res.name} - ${t("files.files")} - ${name}`;
} catch (err) { } catch (err) {
if (err instanceof Error) { if (err instanceof Error) {
error.value = err; error.value = err;