mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 00:33:08 +02:00
Improve usability
This commit is contained in:
parent
f3479d1b98
commit
0d478046de
1 changed files with 7 additions and 3 deletions
|
@ -95,9 +95,13 @@ export default Vue.extend({
|
|||
|
||||
methods: {
|
||||
search() {
|
||||
const query = window.prompt(this.$t('search'));
|
||||
if (query == null || query == '') return;
|
||||
this.$router.push(`/search?q=${encodeURIComponent(query)}`);
|
||||
this.$root.dialog({
|
||||
title: this.$t('search'),
|
||||
input: true
|
||||
}).then(({ canceled, result: query }) => {
|
||||
if (canceled) return;
|
||||
this.$router.push(`/search?q=${encodeURIComponent(query)}`);
|
||||
});
|
||||
},
|
||||
|
||||
onReversiInvited() {
|
||||
|
|
Loading…
Reference in a new issue