@spinnaker/core 2025.3.2 → 2025.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/pipeline/config/triggers/pipeline/PipelineTriggerTemplate.d.ts +9 -0
- package/package.json +2 -2
- package/src/pipeline/config/triggers/pipeline/PipelineTriggerTemplate.spec.tsx +744 -0
- package/src/pipeline/config/triggers/pipeline/PipelineTriggerTemplate.tsx +17 -5
package/dist/index.js
CHANGED
|
@@ -51229,8 +51229,7 @@ function PipelineTrigger(pipelineTriggerProps) {
|
|
|
51229
51229
|
class PipelineTriggerTemplate extends React__default.Component {
|
|
51230
51230
|
constructor(props) {
|
|
51231
51231
|
super(props);
|
|
51232
|
-
this.initialize = () => {
|
|
51233
|
-
const { command } = this.props;
|
|
51232
|
+
this.initialize = (command = this.props.command) => {
|
|
51234
51233
|
command.triggerInvalid = true;
|
|
51235
51234
|
const trigger = command.trigger;
|
|
51236
51235
|
const parent = trigger.parentExecution;
|
|
@@ -51313,8 +51312,10 @@ class PipelineTriggerTemplate extends React__default.Component {
|
|
|
51313
51312
|
return PipelineConfigService.getPipelinesForApplication(application).then(loadSuccess, loadFailure);
|
|
51314
51313
|
}
|
|
51315
51314
|
componentWillReceiveProps(nextProps) {
|
|
51316
|
-
|
|
51317
|
-
|
|
51315
|
+
const nextTrigger = nextProps.command.trigger;
|
|
51316
|
+
const currentTrigger = this.props.command.trigger;
|
|
51317
|
+
if ((nextTrigger == null ? void 0 : nextTrigger.pipeline) !== (currentTrigger == null ? void 0 : currentTrigger.pipeline)) {
|
|
51318
|
+
this.initialize(nextProps.command);
|
|
51318
51319
|
}
|
|
51319
51320
|
}
|
|
51320
51321
|
componentDidMount() {
|