@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.225",
3
+ "version": "1.0.43-alpha.226",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -260,7 +260,8 @@ const longRunningTaskStatus = computed(() => {
260
260
  else if (task?.status === "Failed") failedTaskCount++;
261
261
  });
262
262
 
263
- if (successTaskCount === tasks.value.length) {
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 connectionError.value || longRunningTaskStatus.value !== "Pending";
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
- () => longRunningTaskStatus.value === "Success" && successCtx.value?.btnTitle
316
+ () =>
317
+ longRunningTaskStatus.value === "Success" && !!successCtx.value?.btnTitle
312
318
  );
313
319
 
314
320
  // execute on success and on error functions