From b31cda4eab4f0f71be1980084941aed53b3f146a Mon Sep 17 00:00:00 2001 From: Nuintun Date: Fri, 20 Nov 2015 16:45:19 +0800 Subject: [PATCH] update files --- static/js/components/app-configure/app-configure.html | 2 +- static/js/components/app-configure/index.js | 3 +++ 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 +- 6 files changed, 6 insertions(+), 9 deletions(-) diff --git a/static/js/components/app-configure/app-configure.html b/static/js/components/app-configure/app-configure.html index 335b9cf..d3336cd 100644 --- a/static/js/components/app-configure/app-configure.html +++ b/static/js/components/app-configure/app-configure.html @@ -17,7 +17,7 @@
{{ submitError }}
-
+
  • diff --git a/static/js/components/app-configure/index.js b/static/js/components/app-configure/index.js index 41d46d9..b31792d 100644 --- a/static/js/components/app-configure/index.js +++ b/static/js/components/app-configure/index.js @@ -28,6 +28,9 @@ module.exports = Vue.component('app-configure', { } }, methods: { + focus: function (){ + this.submitError = ''; + }, appConfigure: function (command, configure){ ipc.send('app-configure', command, configure); }, diff --git a/static/js/components/directory/directory.html b/static/js/components/directory/directory.html index 537c5d4..a01466a 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 8fb5f0d..46a1143 100644 --- a/static/js/components/directory/index.js +++ b/static/js/components/directory/index.js @@ -26,9 +26,6 @@ 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 e4dd413..e4bd219 100644 --- a/static/js/components/project-base/index.js +++ b/static/js/components/project-base/index.js @@ -34,9 +34,6 @@ 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 d15201b..44a0300 100644 --- a/static/js/components/project-base/project-base.html +++ b/static/js/components/project-base/project-base.html @@ -6,7 +6,7 @@ {{ nameError }}
  • -
  • +