From 0377080da6ea922beb4119044ec88239d56dc935 Mon Sep 17 00:00:00 2001 From: Hugo Massing Date: Tue, 31 Jul 2018 16:12:04 +0200 Subject: [PATCH] feat(rename): add default value for renaming file (#23) --- src/components/prompts/Rename.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/prompts/Rename.vue b/src/components/prompts/Rename.vue index 3c65b99b..f4fadb70 100644 --- a/src/components/prompts/Rename.vue +++ b/src/components/prompts/Rename.vue @@ -35,6 +35,9 @@ export default { name: '' } }, + created () { + this.name = this.oldName() + }, computed: mapState(['req', 'selected', 'selectedCount']), methods: { cancel: function (event) {