Improve input dialog
This commit is contained in:
@@ -38,9 +38,11 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
fn() {
|
||||
this.$input({
|
||||
this.$root.dialog({
|
||||
title: this.$t('enter-list-name'),
|
||||
}).then(async title => {
|
||||
input: true
|
||||
}).then(async ({ canceled, result: title }) => {
|
||||
if (canceled) return;
|
||||
const list = await this.$root.api('users/lists/create', {
|
||||
title
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user