@camunda/ccma-saas-frontend 0.22.7 → 0.22.9

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.
@@ -238,6 +238,7 @@ export const useC4ConsoleAuthz = (params) => {
238
238
  if (!isCancelled) {
239
239
  setState(cached);
240
240
  }
241
+ hasResolvedOnceRef.current = true;
241
242
  return;
242
243
  }
243
244
  const derived = deriveConsoleAuthzFromAccessToken({
@@ -1621,7 +1621,15 @@ export const C4ClusterDetailsApp = observer((props) => {
1621
1621
  if (syncTabToUrl)
1622
1622
  writeClusterDetailsTabToUrl(next);
1623
1623
  };
1624
- return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage, { loading: isClusterLoading || authz.isLoading, padding: props.padding, clusterName: cluster?.name, phaseTag: headerPhaseTag, healthStatus: headerHealthStatus, versionLabel: headerVersionLabel, regionCode: headerRegionCode, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1624
+ return (_jsxs(_Fragment, { children: [_jsx(C4ClusterDetailsPage
1625
+ // A new org or cluster resets the tab state. Else a draft of the
1626
+ // old cluster stays open when the new cluster comes from the cache.
1627
+ , {
1628
+ // Show the skeleton only until this cluster loads. A reload after
1629
+ // a change must not unmount the tabs, or an open editor loses its
1630
+ // draft and the page moves under the pointer.
1631
+ loading: (isClusterLoading && cluster?.uuid !== props.clusterId) ||
1632
+ authz.isLoading, padding: props.padding, clusterName: cluster?.name, phaseTag: headerPhaseTag, healthStatus: headerHealthStatus, versionLabel: headerVersionLabel, regionCode: headerRegionCode, isDevelopmentPlan: cluster?.planType?.development, urls: { clusters: urls.clusters }, onNavigateToClusters: () => props.onNavigate?.({ kind: 'clusters', orgId: props.orgId }), menu: {
1625
1633
  canRename,
1626
1634
  canDelete,
1627
1635
  canDuplicate,
@@ -1638,7 +1646,7 @@ export const C4ClusterDetailsApp = observer((props) => {
1638
1646
  list: tabs,
1639
1647
  desiredTabId: activeTabId,
1640
1648
  onChange: handleTabChange,
1641
- } }), _jsx(Modal, { open: renameOpen, modalHeading: 'Rename cluster', primaryButtonText: 'Rename', secondaryButtonText: 'Cancel', primaryButtonDisabled: clusterMutationBusy ||
1649
+ } }, `${props.orgId}:${props.clusterId}`), _jsx(Modal, { open: renameOpen, modalHeading: 'Rename cluster', primaryButtonText: 'Rename', secondaryButtonText: 'Cancel', primaryButtonDisabled: clusterMutationBusy ||
1642
1650
  newClusterName.length === 0 ||
1643
1651
  !!cluster?.restoreInProgress, onRequestClose: () => setRenameOpen(false), onRequestSubmit: () => {
1644
1652
  void onRename();
@@ -158,7 +158,7 @@ export function mapPermissionsToScopeStrings(permissions, t) {
158
158
  break;
159
159
  case 'DeleteMembers':
160
160
  case 'RemoveMember':
161
- hotBackupScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.delete', 'Delete'));
161
+ memberScopes.push(safeTranslate(t, 'orgmanagement:tabs.api.scopes.delete', 'Delete'));
162
162
  break;
163
163
  case 'CreateHotBackups':
164
164
  case 'CreateHotBackup':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/ccma-saas-frontend",
3
- "version": "0.22.7",
3
+ "version": "0.22.9",
4
4
  "description": "Camunda Composite Components",
5
5
  "bugs": {
6
6
  "url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
@@ -85,8 +85,8 @@
85
85
  "react-markdown": "^8.0.7 || ^10.0.0"
86
86
  },
87
87
  "dependencies": {
88
- "@camunda/ccma-api": "6.3.0",
89
- "@camunda/ccma-shared-types": "10.10.0",
88
+ "@camunda/ccma-api": "6.4.0",
89
+ "@camunda/ccma-shared-types": "10.11.0",
90
90
  "@pactsafe/pactsafe-react-sdk": "2.15.0",
91
91
  "cron-parser": "5.10.2",
92
92
  "mobx": "6.16.1",