From d280e911e7589eba05fe4e85cb80185f8e72e65f Mon Sep 17 00:00:00 2001 From: Nuintun Date: Fri, 20 Nov 2015 16:34:41 +0800 Subject: [PATCH] update files --- static/js/components/directory/directory.html | 2 +- static/js/components/directory/index.js | 3 +++ static/js/components/project-base/index.js | 3 +++ static/js/components/project-base/project-base.html | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/static/js/components/directory/directory.html b/static/js/components/directory/directory.html index a01466a..537c5d4 100644 --- a/static/js/components/directory/directory.html +++ b/static/js/components/directory/directory.html @@ -1,3 +1,3 @@ -  +  \ No newline at end of file diff --git a/static/js/components/directory/index.js b/static/js/components/directory/index.js index 46a1143..8fb5f0d 100644 --- a/static/js/components/directory/index.js +++ b/static/js/components/directory/index.js @@ -26,6 +26,9 @@ module.exports = Vue.component('directory', { methods: { open: function (){ ipc.send('open-directory', this.path, this._uid); + }, + focus: function (){ + this.$dispatch('directory-input-focus'); } }, created: function (){ diff --git a/static/js/components/project-base/index.js b/static/js/components/project-base/index.js index e4bd219..e4dd413 100644 --- a/static/js/components/project-base/index.js +++ b/static/js/components/project-base/index.js @@ -34,6 +34,9 @@ module.exports = Vue.component('project-base', { } }, events: { + 'directory-input-focus': function (){ + this.pathError = ''; + }, 'clean-error': function (){ this.nameError = ''; this.pathError = ''; diff --git a/static/js/components/project-base/project-base.html b/static/js/components/project-base/project-base.html index 71fe76b..d15201b 100644 --- a/static/js/components/project-base/project-base.html +++ b/static/js/components/project-base/project-base.html @@ -1,6 +1,6 @@
  • - +