Improve input dialog
This commit is contained in:
parent
3a2dc95850
commit
1653977392
26 changed files with 201 additions and 318 deletions
|
|
@ -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
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue