mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 20:23:49 +01:00
Improve usability
This commit is contained in:
parent
2f4416ef1c
commit
bbf5305196
@ -95,9 +95,13 @@ export default Vue.extend({
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
const query = window.prompt(this.$t('search'));
|
this.$root.dialog({
|
||||||
if (query == null || query == '') return;
|
title: this.$t('search'),
|
||||||
this.$router.push(`/search?q=${encodeURIComponent(query)}`);
|
input: true
|
||||||
|
}).then(({ canceled, result: query }) => {
|
||||||
|
if (canceled) return;
|
||||||
|
this.$router.push(`/search?q=${encodeURIComponent(query)}`);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onReversiInvited() {
|
onReversiInvited() {
|
||||||
|
Loading…
Reference in New Issue
Block a user