Skip to content

Commit

Permalink
feat(version): release 0.19.8 version
Browse files Browse the repository at this point in the history
  • Loading branch information
gokhangunduz committed Nov 16, 2023
1 parent d75c4cb commit 99bcc5e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 25 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<img src="https://img.shields.io/badge/nodejs-18.18.2-dgreen" alt="node">
</a>
<a href="https://github.com/robolaunch/ui/releases">
<img src="https://img.shields.io/badge/release-v0.19.7-red" alt="release">
<img src="https://img.shields.io/badge/release-v0.19.8-red" alt="release">
</a>
<a href="#">
<img src="https://img.shields.io/badge/language-typescript-blue" alt="language">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ui",
"version": "0.19.7",
"version": "0.19.8",
"private": true,
"scripts": {
"dev": "react-scripts start",
Expand Down
13 changes: 7 additions & 6 deletions src/components/CreateForms/CFStep2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ export default function CFStep2({ isImportRobot }: ICFStep2): ReactElement {
<CFLoader
type="workspace"
isLoading={
isImportRobot
? isLoadingImportRobot
: !responseFleet ||
(envOnPremiseFleet
? responseFleet?.namespaceStatus !== "Active"
: responseFleet?.fleetStatus !== "Ready")
// isImportRobot
// ? isLoadingImportRobot
// : !responseFleet ||
// (envOnPremiseFleet
// ? responseFleet?.namespaceStatus !== "Active"
// : responseFleet?.fleetStatus !== "Ready")
false
}
loadingText={
isImportRobot
Expand Down
10 changes: 4 additions & 6 deletions src/components/SidebarLists/OrganizationsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,8 @@ export default function OrganizationsList({
!responseOrganizations?.length ? (
<SidebarSelectInfo text={`Create an Organization.`} />
) : (
responseOrganizations
?.filter(
(organization: IOrganization) => !organization?.organizationName,
)
?.map((organization: IOrganization, index: number) => {
responseOrganizations?.map(
(organization: IOrganization, index: number) => {
return (
<SidebarListItem
key={index}
Expand All @@ -71,7 +68,8 @@ export default function OrganizationsList({
}
/>
);
})
},
)
)}
</Fragment>
);
Expand Down
22 changes: 11 additions & 11 deletions src/contexts/MainContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ export default ({ children }: any) => {
const url = useLocation();

const [sidebarState, setSidebarState] = useState<ISidebarState>({
isOpen: false,
isCreateMode: false,
page: undefined,
isOpen: true,
isCreateMode: true,
page: "workspacesmanager",
instanceTab: "Cloud Instances",
});

Expand Down Expand Up @@ -46,14 +46,14 @@ export default ({ children }: any) => {
console.log("SelectedState", selectedState);
}, [selectedState]);

useEffect(() => {
setSidebarState({
isOpen: false,
page: undefined,
isCreateMode: false,
instanceTab: "Cloud Instances",
});
}, [url]);
// useEffect(() => {
// setSidebarState({
// isOpen: false,
// page: undefined,
// isCreateMode: false,
// instanceTab: "Cloud Instances",
// });
// }, [url]);

function handleCreateRobotPreviousStep() {
switch (sidebarState?.page) {
Expand Down

0 comments on commit 99bcc5e

Please sign in to comment.