diff --git a/src/app.jsx b/src/app.jsx
index 271397e1..526f8c67 100644
--- a/src/app.jsx
+++ b/src/app.jsx
@@ -28,7 +28,7 @@ import './lib/patternfly/patternfly-4-cockpit.scss';
import {
Title, Button, Alert,
EmptyState, EmptyStateVariant, EmptyStateIcon, EmptyStateBody,
- DataList, DataListItem, DataListItemRow, DataListItemCells, DataListCell, DataListContent, /* DataListAction, */
+ DataList, DataListItem, DataListItemRow, DataListItemCells, DataListCell, DataListContent,
Page, PageSection, PageSectionVariants,
Select, SelectOption,
Spinner,
diff --git a/src/changeRemoteModal.jsx b/src/changeRemoteModal.jsx
index effb65d6..246cb27e 100644
--- a/src/changeRemoteModal.jsx
+++ b/src/changeRemoteModal.jsx
@@ -23,11 +23,15 @@ import React, { useState } from 'react';
import PropTypes from "prop-types";
import {
- Title, Button, Alert, AlertActionCloseButton,
+ Button, Alert, AlertActionCloseButton,
Form, FormGroup, ActionGroup,
TextInput, TextArea,
Checkbox,
- SimpleList, SimpleListItem,
+ DataList,
+ DataListCell,
+ DataListItem,
+ DataListItemRow,
+ DataListItemCells,
Modal,
} from '@patternfly/react-core';
import { PencilAltIcon, AddCircleOIcon } from '@patternfly/react-icons';
@@ -59,66 +63,60 @@ export const ChangeRemoteModal = ({ setIsModalOpen, isModalOpen, remotesList, cu
>;
return (
- setIsModalOpen(false)}
- footer={footer}>
- <>
- {error && }
- setSelectedRemote(currentItemProps.id)}>
- {(remotesList || []).map(remote => {
- return (
- (!editRepoDialogOpen || editRepoDialogOpen.name !== remote)
- ? {
- ev.stopPropagation();
- ev.preventDefault();
- }}
- isCurrent={remote === selectedRemote}>
- {remote}
-
-
- :
-
-
- );
- }).concat([
- !addNewRepoDialogOpen
- ? {
- ev.stopPropagation();
- ev.preventDefault();
- }}
- key="add-new">
-
-
- :
- ])}
-
- >
-
+ <>
+ setIsModalOpen(false)}
+ footer={footer}>
+ <>
+ {error && }
+
+
+ >
+
+ {addNewRepoDialogOpen && }
+ >
);
};
@@ -151,46 +149,52 @@ const AddNewRepoForm = ({ setAddNewRepoDialogOpen, refreshRemotes }) => {
};
return (
-
+ setAddNewRepoDialogOpen(false)}
+ footer={
+ <>
+
+
+ >
+ }>
+
+
);
};
AddNewRepoForm.propTypes = {
@@ -219,13 +223,10 @@ const EditRemoteForm = ({ remoteSettings, setEditRepoDialogOpen, refreshRemotes
};
return (
-