Skip to content

Commit

Permalink
Fixes gitthermal#3568: Sets input field value when repository path is…
Browse files Browse the repository at this point in the history
… updated.
  • Loading branch information
hansal7014 committed Oct 13, 2019
1 parent db678df commit 812a5a7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/renderer/modal/addLocalRepository.vue
Expand Up @@ -6,6 +6,7 @@
</t-card-header>
<t-card-body>
<inputText
id="pathToRepository"
v-model.trim="pathToRepository"
v-focus
name="pathToRepository"
Expand All @@ -30,15 +31,8 @@
:outline="true"
margin-left="auto"
@click.native="closeModal('AddLocalRepository')"
>
Close
</t-button>
<t-button
margin-left=".5rem"
@click.native="addRepository(pathToRepository)"
>
Add repository
</t-button>
>Close</t-button>
<t-button margin-left=".5rem" @click.native="addRepository(pathToRepository)">Add repository</t-button>
</t-card-footer>
</t-card>
</template>
Expand Down Expand Up @@ -86,6 +80,8 @@ export default {
methods: {
fileSectorInput(event) {
this.pathToRepository = event.target.files[0].path.split("\\").join("/");
var repositoryPathInput = document.getElementById("pathToRepository");
repositoryPathInput.value = this.pathToRepository;
},
addRepository(path) {
if (this.pathToRepository !== "") {
Expand Down

0 comments on commit 812a5a7

Please sign in to comment.