@appscode/design-system 1.0.43-alpha.225 → 1.0.43-alpha.226
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/package.json
CHANGED
|
@@ -260,7 +260,8 @@ const longRunningTaskStatus = computed(() => {
|
|
|
260
260
|
else if (task?.status === "Failed") failedTaskCount++;
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
if (
|
|
263
|
+
if (tasks.value.length === 0) return "NotStarted";
|
|
264
|
+
else if (successTaskCount === tasks.value.length) {
|
|
264
265
|
return "Success";
|
|
265
266
|
} else if (failedTaskCount === tasks.value.length) {
|
|
266
267
|
return "Failed";
|
|
@@ -269,7 +270,11 @@ const longRunningTaskStatus = computed(() => {
|
|
|
269
270
|
|
|
270
271
|
// modal close / footer feature
|
|
271
272
|
const enableModalClose = computed(() => {
|
|
272
|
-
return
|
|
273
|
+
return (
|
|
274
|
+
connectionError.value ||
|
|
275
|
+
longRunningTaskStatus.value === "Failed" ||
|
|
276
|
+
longRunningTaskStatus.value === "Success"
|
|
277
|
+
);
|
|
273
278
|
});
|
|
274
279
|
const enableModalFooter = computed(() => {
|
|
275
280
|
return showReportButton.value || showSuccessButton.value;
|
|
@@ -308,7 +313,8 @@ function onReportIssueClick() {
|
|
|
308
313
|
|
|
309
314
|
// success button
|
|
310
315
|
const showSuccessButton = computed(
|
|
311
|
-
() =>
|
|
316
|
+
() =>
|
|
317
|
+
longRunningTaskStatus.value === "Success" && !!successCtx.value?.btnTitle
|
|
312
318
|
);
|
|
313
319
|
|
|
314
320
|
// execute on success and on error functions
|