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 @@
  • - +