summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-16 08:45:10 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-16 08:45:10 +0900
commitb7c5c71c6fdd139406166cff697a4e94bb11384a (patch)
tree16a70a2655782dc5f26f858651c494b10ef7771b /src/client/app/mobile/views/components
parentFormat uptimes (#3629) (diff)
downloadmisskey-b7c5c71c6fdd139406166cff697a4e94bb11384a.tar.gz
misskey-b7c5c71c6fdd139406166cff697a4e94bb11384a.tar.bz2
misskey-b7c5c71c6fdd139406166cff697a4e94bb11384a.zip
[Client] Resolve #2951
あと検索フォームでサジェストを有効に
Diffstat (limited to 'src/client/app/mobile/views/components')
-rw-r--r--src/client/app/mobile/views/components/post-form.vue4
-rw-r--r--src/client/app/mobile/views/components/ui.nav.vue10
2 files changed, 11 insertions, 3 deletions
diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue
index 28e008279c..d9cf1471c5 100644
--- a/src/client/app/mobile/views/components/post-form.vue
+++ b/src/client/app/mobile/views/components/post-form.vue
@@ -19,8 +19,8 @@
</span>
<a @click="addVisibleUser">+{{ $t('add-visible-user') }}</a>
</div>
- <input v-show="useCw" ref="cw" v-model="cw" :placeholder="$t('annotations')" v-autocomplete="'cw'">
- <textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="'text'"></textarea>
+ <input v-show="useCw" ref="cw" v-model="cw" :placeholder="$t('annotations')" v-autocomplete="{ model: 'cw' }">
+ <textarea v-model="text" ref="text" :disabled="posting" :placeholder="placeholder" v-autocomplete="{ model: 'text' }"></textarea>
<div class="attaches" v-show="files.length != 0">
<x-draggable class="files" :list="files" :options="{ animation: 150 }">
<div class="file" v-for="file in files" :key="file.id">
diff --git a/src/client/app/mobile/views/components/ui.nav.vue b/src/client/app/mobile/views/components/ui.nav.vue
index 19e02523b7..d12a6f7d27 100644
--- a/src/client/app/mobile/views/components/ui.nav.vue
+++ b/src/client/app/mobile/views/components/ui.nav.vue
@@ -100,7 +100,15 @@ export default Vue.extend({
input: true
}).then(({ canceled, result: query }) => {
if (canceled) return;
- this.$router.push(`/search?q=${encodeURIComponent(query)}`);
+
+ const q = query.trim();
+ if (q.startsWith('@')) {
+ this.$router.push(`/${q}`);
+ } else if (q.startsWith('#')) {
+ this.$router.push(`/tags/${encodeURIComponent(q.substr(1))}`);
+ } else {
+ this.$router.push(`/search?q=${encodeURIComponent(q)}`);
+ }
});
},