@knime/hub-features 1.22.3 → 1.22.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @knime/hub-features
2
2
 
3
+ ## 1.22.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 12e9b4a: Auto-expand RFC error toast when details list is empty
8
+
3
9
  ## 1.22.3
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knime/hub-features",
3
- "version": "1.22.3",
3
+ "version": "1.22.4",
4
4
  "description": "Vue components & composables for shared hub features",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,8 +37,8 @@
37
37
  "ofetch": "^1.4.1",
38
38
  "typescript": "^5.9.3",
39
39
  "@knime/components": "1.45.9",
40
- "@knime/styles": "1.15.0",
41
- "@knime/utils": "1.10.1"
40
+ "@knime/utils": "1.10.1",
41
+ "@knime/styles": "1.15.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "consola": "3.x",
@@ -35,7 +35,14 @@ const { copy, copied } = useClipboard({
35
35
  copiedDuring: 3000,
36
36
  });
37
37
 
38
- const showDetails = ref(false);
38
+ const hasDetails =
39
+ props.details?.length ||
40
+ props.status !== undefined ||
41
+ props.date !== undefined ||
42
+ props.requestId !== undefined ||
43
+ props.errorId !== undefined;
44
+ // don't show 'Show details' button if there are no details to show
45
+ const showDetails = ref(!hasDetails);
39
46
 
40
47
  const formatDate = (date: Date): string =>
41
48
  date ? formatDateTimeString(date.getTime()) : "";