Skip to content

Commit

Permalink
feat: file name on page title
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Apr 23, 2021
1 parent 7d1e030 commit 16a34de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/views/Files.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/views/Share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 16a34de

Please sign in to comment.