Skip to content

Commit

Permalink
Fix: タイトルが変更されるページから通常ページに遷移してもタイトルが戻らない
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 14, 2019
1 parent f7c329b commit a819324
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/client/app/common/views/pages/explore.vue
Expand Up @@ -147,7 +147,12 @@ export default Vue.extend({
this.$root.getMeta().then(meta => {
this.meta = meta;
});
}
},
mounted() {
console.log('mounted x');
document.title = this.$root.instanceName;
},
});
</script>

Expand Down
3 changes: 3 additions & 0 deletions src/client/app/desktop/views/home/favorites.vue
Expand Up @@ -29,6 +29,9 @@ export default Vue.extend({
created() {
this.fetch();
},
mounted() {
document.title = this.$root.instanceName;
},
methods: {
fetch() {
Progress.start();
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/desktop/views/home/featured.vue
Expand Up @@ -22,6 +22,9 @@ export default Vue.extend({
created() {
this.fetch();
},
mounted() {
document.title = this.$root.instanceName;
},
methods: {
fetch() {
Progress.start();
Expand Down
2 changes: 2 additions & 0 deletions src/client/app/desktop/views/home/timeline.vue
Expand Up @@ -94,6 +94,8 @@ export default Vue.extend({
},
mounted() {
document.title = this.$root.instanceName;
(this.$refs.tl as any).$once('loaded', () => {
this.$emit('loaded');
});
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/desktop/views/pages/settings.vue
Expand Up @@ -13,6 +13,9 @@ export default Vue.extend({
components: {
XSettings: () => import('../components/settings.vue').then(m => m.default)
},
mounted() {
document.title = this.$root.instanceName;
},
});
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/client/app/mobile/views/pages/favorites.vue
Expand Up @@ -32,7 +32,7 @@ export default Vue.extend({
this.fetch();
},
mounted() {
document.title = `${this.$root.instanceName} | %i18n:@notifications%`;
document.title = this.$root.instanceName;
},
methods: {
fetch() {
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/mobile/views/pages/featured.vue
Expand Up @@ -30,6 +30,9 @@ export default Vue.extend({
created() {
this.fetch();
},
mounted() {
document.title = this.$root.instanceName;
},
methods: {
fetch() {
Progress.start();
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/mobile/views/pages/settings.vue
Expand Up @@ -39,6 +39,9 @@ export default Vue.extend({
return Vue.filter('userName')(this.$store.state.i);
},
},
mounted() {
document.title = this.$root.instanceName;
},
methods: {
signout() {
this.$root.signout();
Expand Down

0 comments on commit a819324

Please sign in to comment.