Skip to content

Commit 812a5a7

Browse files
committed
Fixes gitthermal#3568: Sets input field value when repository path is updated.
1 parent db678df commit 812a5a7

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/renderer/modal/addLocalRepository.vue

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
</t-card-header>
77
<t-card-body>
88
<inputText
9+
id="pathToRepository"
910
v-model.trim="pathToRepository"
1011
v-focus
1112
name="pathToRepository"
@@ -30,15 +31,8 @@
3031
:outline="true"
3132
margin-left="auto"
3233
@click.native="closeModal('AddLocalRepository')"
33-
>
34-
Close
35-
</t-button>
36-
<t-button
37-
margin-left=".5rem"
38-
@click.native="addRepository(pathToRepository)"
39-
>
40-
Add repository
41-
</t-button>
34+
>Close</t-button>
35+
<t-button margin-left=".5rem" @click.native="addRepository(pathToRepository)">Add repository</t-button>
4236
</t-card-footer>
4337
</t-card>
4438
</template>
@@ -86,6 +80,8 @@ export default {
8680
methods: {
8781
fileSectorInput(event) {
8882
this.pathToRepository = event.target.files[0].path.split("\\").join("/");
83+
var repositoryPathInput = document.getElementById("pathToRepository");
84+
repositoryPathInput.value = this.pathToRepository;
8985
},
9086
addRepository(path) {
9187
if (this.pathToRepository !== "") {

0 commit comments

Comments
 (0)