Improve input dialog
This commit is contained in:
@@ -29,9 +29,11 @@ export default Vue.extend({
|
||||
},
|
||||
methods: {
|
||||
add() {
|
||||
this.$input({
|
||||
this.$root.dialog({
|
||||
title: this.$t('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