summaryrefslogtreecommitdiff
path: root/src/client/app/desktop/views/pages/deck/deck.column.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/app/desktop/views/pages/deck/deck.column.vue')
-rw-r--r--src/client/app/desktop/views/pages/deck/deck.column.vue11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/client/app/desktop/views/pages/deck/deck.column.vue b/src/client/app/desktop/views/pages/deck/deck.column.vue
index ead5ee2bdb..bb3f0d8c18 100644
--- a/src/client/app/desktop/views/pages/deck/deck.column.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.column.vue
@@ -167,11 +167,14 @@ export default Vue.extend({
icon: 'pencil-alt',
text: this.$t('rename'),
action: () => {
- this.$input({
+ this.$root.dialog({
title: this.$t('rename'),
- default: this.name,
- allowEmpty: false
- }).then(name => {
+ input: {
+ default: this.name,
+ allowEmpty: false
+ }
+ }).then(({ canceled, result: name }) => {
+ if (canceled) return;
this.$store.dispatch('settings/renameDeckColumn', { id: this.column.id, name });
});
}