From 16a34defc02554a77c6ac47b9e17e69d098a09fe Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 23 Apr 2021 11:59:04 +0000 Subject: [PATCH] feat: file name on page title --- frontend/src/views/Files.vue | 2 +- frontend/src/views/Share.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Files.vue b/frontend/src/views/Files.vue index 3ae407c2..8f50426d 100644 --- a/frontend/src/views/Files.vue +++ b/frontend/src/views/Files.vue @@ -116,7 +116,7 @@ export default { } this.$store.commit("updateRequest", res); - document.title = res.name; + document.title = `${res.name} - ${this.$route.name}`; } catch (e) { this.error = e; } finally { diff --git a/frontend/src/views/Share.vue b/frontend/src/views/Share.vue index 56a128b6..584cb5ff 100644 --- a/frontend/src/views/Share.vue +++ b/frontend/src/views/Share.vue @@ -278,6 +278,7 @@ export default { this.token = file.token || ""; this.updateRequest(file); + document.title = `${file.name} - ${this.$route.name}`; } catch (e) { this.error = e; } finally {