fix: git ssh port incorrect default value
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
hide-details
|
||||
color='primary'
|
||||
)
|
||||
v-col(cols='8')
|
||||
v-col(:cols='gitAuthMode === `ssh` ? 6 : 8')
|
||||
v-text-field(
|
||||
outlined
|
||||
label='Repository URL'
|
||||
@@ -52,6 +52,14 @@
|
||||
hide-details
|
||||
v-model='gitRepoUrl'
|
||||
)
|
||||
v-col(v-if='gitAuthMode === `ssh`', cols='2')
|
||||
v-text-field(
|
||||
label='Port'
|
||||
placeholder='e.g. 22'
|
||||
v-model='gitRepoPort'
|
||||
outlined
|
||||
hide-details
|
||||
)
|
||||
v-col(cols='4')
|
||||
v-text-field(
|
||||
label='Branch'
|
||||
@@ -296,6 +304,7 @@ export default {
|
||||
],
|
||||
gitVerifySSL: true,
|
||||
gitRepoUrl: '',
|
||||
gitRepoPort: 22,
|
||||
gitRepoBranch: 'master',
|
||||
gitPrivKey: '',
|
||||
gitUsername: '',
|
||||
@@ -387,6 +396,7 @@ export default {
|
||||
{ key: 'authType', value: { value: this.gitAuthMode } },
|
||||
{ key: 'repoUrl', value: { value: this.gitRepoUrl } },
|
||||
{ key: 'branch', value: { value: this.gitRepoBranch } },
|
||||
{ key: 'sshPort', value: { value: this.gitRepoPort } },
|
||||
{ key: 'sshPrivateKeyMode', value: { value: 'contents' } },
|
||||
{ key: 'sshPrivateKeyPath', value: { value: '' } },
|
||||
{ key: 'sshPrivateKeyContent', value: { value: this.gitPrivKey } },
|
||||
|
Reference in New Issue
Block a user