1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 14:55:27 +02:00

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

This commit is contained in:
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

@ -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: '@',
},
};