fix(git): EE-4577 Git Repository Fields are Missing in Edge Stacks (#8057)

pull/8065/head^2
cmeng 2022-11-18 08:59:58 +13:00 committed by GitHub
parent d012a4efc4
commit 4cfa584c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 3 deletions

View File

@ -21,7 +21,7 @@
<file-upload-description> You can upload a Compose file from your computer. </file-upload-description>
</file-upload-form>
<git-form ng-if="$ctrl.state.Method === 'repository'" model="$ctrl.formValues" on-change="($ctrl.onChangeFormValues)"></git-form>
<git-form ng-if="$ctrl.state.Method === 'repository'" model="$ctrl.formValues" on-change="($ctrl.onChangeFormValues)" hide-rebuild-info="true"></git-form>
<!-- template -->
<div ng-if="$ctrl.state.Method === 'template'">

View File

@ -21,4 +21,10 @@
</file-upload-description>
</file-upload-form>
<git-form ng-if="$ctrl.state.Method === 'repository'" deploy-method="kubernetes" model="$ctrl.formValues" on-change="($ctrl.onChangeFormValues)"></git-form>
<git-form
ng-if="$ctrl.state.Method === 'repository'"
deploy-method="kubernetes"
model="$ctrl.formValues"
on-change="($ctrl.onChangeFormValues)"
hide-rebuild-info="true"
></git-form>

View File

@ -1,11 +1,12 @@
export default class GitFormController {
/* @ngInject */
constructor(StateManager) {
this.StateManager = StateManager;
this.onChangeField = this.onChangeField.bind(this);
this.onChangeURL = this.onChangeField('RepositoryURL');
this.onChangeRefName = this.onChangeField('RepositoryReferenceName');
this.onChangeComposePath = this.onChangeField('ComposeFilePathInRepository');
this.isDockerStandalone = StateManager.getState().endpoint.mode.provider === 'DOCKER_STANDALONE';
}
onChangeField(field) {
@ -19,5 +20,6 @@ export default class GitFormController {
$onInit() {
this.deployMethod = this.deployMethod || 'compose';
this.isDockerStandalone = !this.hideRebuildInfo && this.StateManager.getState().endpoint.mode.provider === 'DOCKER_STANDALONE';
}
}

View File

@ -11,5 +11,6 @@ export const gitForm = {
autoUpdate: '<',
showAuthExplanation: '<',
showForcePullImage: '<',
hideRebuildInfo: '@',
},
};