mirror of https://github.com/portainer/portainer
fix(git): EE-4577 Git Repository Fields are Missing in Edge Stacks (#8057)
parent
d012a4efc4
commit
4cfa584c7c
|
@ -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'">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,5 +11,6 @@ export const gitForm = {
|
|||
autoUpdate: '<',
|
||||
showAuthExplanation: '<',
|
||||
showForcePullImage: '<',
|
||||
hideRebuildInfo: '@',
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue