@devops-flow/devops-flow-pipeline-detail 0.0.59 → 0.0.60
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/PipelineFlowDetail.js +1 -1
- package/es/components/common/teambition/pipeline-instance/index.js +1 -1
- package/es/components/common/teambition/pipeline-instance-new/StatusBar.js +2 -4
- package/es/components/detailMain/histories/index.js +1 -1
- package/es/utils/index.d.ts +1 -1
- package/es/utils/index.js +2 -3
- package/package.json +1 -1
|
@@ -359,7 +359,7 @@ var PipelineInstance = function PipelineInstance(props) {
|
|
|
359
359
|
href: helpLink('concurrency_and_build_time')
|
|
360
360
|
})))), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Duration, {
|
|
361
361
|
startedAt: instance.flowInstVo.gmtCreate,
|
|
362
|
-
endedAt: utils.isFinished(instance.flowInstVo.status
|
|
362
|
+
endedAt: utils.isFinished(instance.flowInstVo.status) ? instance.flowInstVo.gmtModified : null
|
|
363
363
|
}))), enablePackages && /*#__PURE__*/React.createElement(Packages, {
|
|
364
364
|
packages: packages
|
|
365
365
|
}), contextObj.FLOW_INST_RUNNING_COMMENT && /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("label", null, intl.get({
|
|
@@ -121,9 +121,7 @@ export var StatusBar = /*#__PURE__*/React.memo(function (props) {
|
|
|
121
121
|
}, /*#__PURE__*/React.createElement(Duration, {
|
|
122
122
|
className: "duration",
|
|
123
123
|
startedAt: instance.createTime,
|
|
124
|
-
endedAt: utils.isFinished(instance.status
|
|
125
|
-
// instance.flowInstVo.runningStatus,
|
|
126
|
-
) ? instance.updateTime : null
|
|
124
|
+
endedAt: utils.isFinished(instance.status) ? instance.updateTime : null
|
|
127
125
|
}), /*#__PURE__*/React.createElement(Balloon.Tooltip, {
|
|
128
126
|
trigger: /*#__PURE__*/React.createElement(YunxiaoIcon, {
|
|
129
127
|
type: "question-line",
|
|
@@ -239,7 +237,7 @@ export var StatusBar = /*#__PURE__*/React.memo(function (props) {
|
|
|
239
237
|
}, /*#__PURE__*/React.createElement(Duration, {
|
|
240
238
|
className: "duration",
|
|
241
239
|
startedAt: instance.createTime,
|
|
242
|
-
endedAt: instance.updateTime
|
|
240
|
+
endedAt: utils.isFinished(instance.status) ? instance.updateTime : null
|
|
243
241
|
}), /*#__PURE__*/React.createElement(Balloon.Tooltip, {
|
|
244
242
|
trigger: /*#__PURE__*/React.createElement(YunxiaoIcon, {
|
|
245
243
|
type: "question-line",
|
|
@@ -137,7 +137,7 @@ var Histories = function Histories(_ref) {
|
|
|
137
137
|
cell: function cell(_, __, record) {
|
|
138
138
|
return /*#__PURE__*/React.createElement(Duration, {
|
|
139
139
|
startedAt: record.flowInstVo.gmtCreate,
|
|
140
|
-
endedAt: utils.isFinished(record.flowInstVo.status
|
|
140
|
+
endedAt: utils.isFinished(record.flowInstVo.status) ? record.flowInstVo.gmtModified : null
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
}),
|
package/es/utils/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ declare const tools: {
|
|
|
22
22
|
[x: string]: any;
|
|
23
23
|
type?: string;
|
|
24
24
|
}, key: any): void;
|
|
25
|
-
isFinished(status: any
|
|
25
|
+
isFinished(status: any): boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare const onceToast: any;
|
|
28
28
|
export declare const tireToast: any;
|
package/es/utils/index.js
CHANGED
|
@@ -157,9 +157,8 @@ var tools = {
|
|
|
157
157
|
}));
|
|
158
158
|
this.onceToastCacheMap[key] = true;
|
|
159
159
|
},
|
|
160
|
-
isFinished: function isFinished(status
|
|
161
|
-
|
|
162
|
-
return ['FAIL', 'CANCELED'].includes(runningStatus);
|
|
160
|
+
isFinished: function isFinished(status) {
|
|
161
|
+
return ['FINISH', 'CANCELED', 'FAIL', 'SUCCESS'].indexOf((status || '').toUpperCase()) > -1;
|
|
163
162
|
}
|
|
164
163
|
};
|
|
165
164
|
export var onceToast = tools.onceToast.bind(tools);
|