- {isConnected && (
-
-
-
-
- {intl.get('screen.dashboard.cards.cavatica.connectedNotice')}
- }
- onClick={() => dispatch(disconnectFromFence(FENCE_NAMES.cavatica))}
- className={styles.disconnectBtn}
- loading={connectionLoading}
- >
- {intl.get('screen.dashboard.cards.cavatica.disconnect')}
-
-
-
-
- )}
-
- className={styles.cavaticaProjectsList}
- bordered
- itemLayout="vertical"
- loading={isLoading || connectionLoading}
- locale={{
- emptyText: isConnected ? (
- }
- size="small"
- onClick={() => dispatch(fenceCavaticaActions.beginCreateProject())}
- >
- {intl.get('screen.dashboard.cards.cavatica.createNewProject')}
-
- }
- />
- ) : (
- }
- description={intl.get('screen.dashboard.cards.cavatica.disconnectedNotice')}
- btnProps={{
- onClick: () => dispatch(connectToFence(FENCE_NAMES.cavatica)),
- }}
- />
- ),
- }}
- dataSource={isConnected ? projects : []}
- renderItem={(item) => }
- >
- {(isConnected ? projects : []).length > 0 && (
-
- }
- className={styles.newProjectBtn}
- size="small"
- onClick={() => dispatch(fenceCavaticaActions.beginCreateProject())}
- >
- {intl.get('screen.dashboard.cards.cavatica.newProject')}
-
-
- )}
-
- }
- />
- {isConnected &&