summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-01 09:12:04 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-01 09:12:04 +0900
commit53f018aae68bed866ad1bd34cd6aa1c6dc857464 (patch)
tree5dca6642d7ae4af925b6ef57d95930f4dcce0ae4 /src
parentUpdate avatar.vue (diff)
downloadmisskey-53f018aae68bed866ad1bd34cd6aa1c6dc857464.tar.gz
misskey-53f018aae68bed866ad1bd34cd6aa1c6dc857464.tar.bz2
misskey-53f018aae68bed866ad1bd34cd6aa1c6dc857464.zip
Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/pages/index.home.vue9
-rw-r--r--src/client/pages/index.vue16
-rw-r--r--src/client/router.ts10
3 files changed, 32 insertions, 3 deletions
diff --git a/src/client/pages/index.home.vue b/src/client/pages/index.home.vue
index 0c3d2e7f86..4801035293 100644
--- a/src/client/pages/index.home.vue
+++ b/src/client/pages/index.home.vue
@@ -1,6 +1,6 @@
<template>
<div class="mk-home" v-hotkey.global="keymap">
- <portal to="header">
+ <portal to="header" v-if="showTitle">
<button @click="choose" class="_button _kjvfvyph_">
<i><fa v-if="$store.state.i.hasUnreadAntenna" :icon="faCircle"/></i>
<fa v-if="src === 'home'" :icon="faHome"/>
@@ -35,6 +35,13 @@ export default Vue.extend({
XTimeline
},
+ props: {
+ showTitle: {
+ type: Boolean,
+ required: true
+ }
+ },
+
data() {
return {
src: 'home',
diff --git a/src/client/pages/index.vue b/src/client/pages/index.vue
index 18c8945b65..788df3929a 100644
--- a/src/client/pages/index.vue
+++ b/src/client/pages/index.vue
@@ -1,5 +1,5 @@
<template>
-<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'"></component>
+<component :is="$store.getters.isSignedIn ? 'home' : 'welcome'" :show-title="showTitle"></component>
</template>
<script lang="ts">
@@ -12,6 +12,20 @@ export default Vue.extend({
components: {
Home,
Welcome: () => import('./index.welcome.vue').then(m => m.default),
+ },
+
+ data() {
+ return {
+ showTitle: true,
+ }
+ },
+
+ activated() {
+ this.showTitle = true;
+ },
+
+ deactivated() {
+ this.showTitle = false;
}
});
</script>
diff --git a/src/client/router.ts b/src/client/router.ts
index 7eb12c8e44..9c028e9edc 100644
--- a/src/client/router.ts
+++ b/src/client/router.ts
@@ -49,5 +49,13 @@ export const router = new VueRouter({
{ path: '/auth/:token', component: () => import('./pages/auth.vue').then(m => m.default) },
{ path: '/authorize-follow', component: () => import('./pages/follow.vue').then(m => m.default) },
/*{ path: '*', component: MkNotFound }*/
- ]
+ ],
+ /* なんかバギー
+ scrollBehavior(to, from, savedPosition) {
+ if (savedPosition) {
+ return savedPosition;
+ } else {
+ return { x: 0, y: 0 };
+ }
+ }*/
});