Skip to content

Commit

Permalink
[CLD-499] Create a ‘Manage’ page on the client side (#182)
Browse files Browse the repository at this point in the history
* [CLD-499] create manage page on the client side

* Update snapshot
  • Loading branch information
vuhuucuong authored Dec 3, 2019
1 parent e527623 commit 69f6518
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ exports[`MyApps should match a snapshot when LOADING false 1`] = `
"totalCount": 6,
}
}
title="Installed Apps"
title="Manage Apps"
/>
<Connect(Component)
afterClose={[Function]}
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/my-apps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const MyApps: React.FunctionComponent<MyAppsProps> = ({
<ErrorBoundary>
<AppList
list={list}
title="Installed Apps"
title="Manage Apps"
loading={loading}
onCardClick={(app: AppSummaryModel) => handleLaunchApp(app)}
onSettingsClick={(app: AppSummaryModel) => {
Expand Down
6 changes: 3 additions & 3 deletions src/components/ui/__tests__/__snapshots__/menu.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ exports[`Menu should match a snapshot 1`] = `
"url": "/client/apps",
},
Object {
"icon": <FaCloudDownloadAlt
"icon": <FaClipboardList
className="nav-item-icon"
/>,
"key": "MY_APPS",
"title": "Installed",
"title": "Manage",
"type": "PRIMARY",
"url": "/client/installed",
"url": "/client/manage",
},
Object {
"callback": [Function],
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ export const generateMenuConfig = (
icon: <FaCloud className="nav-item-icon" />
},
{
title: 'Installed',
title: 'Manage',
key: 'MY_APPS',
url: Routes.MY_APPS,
type: 'PRIMARY',
icon: <FaCloudDownloadAlt className="nav-item-icon" />
icon: <FaClipboardList className="nav-item-icon" />
},
{
title: 'Logout',
Expand Down
3 changes: 2 additions & 1 deletion src/constants/routes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const Routes = {
CLIENT: '/client/apps',
MY_APPS: '/client/installed',
INSTALLED_APPS: '/client/installed',
MY_APPS: '/client/manage',
MY_APPS_PAGINATE: '/client/installed/:page',
DEVELOPER: '/developer',
DEVELOPER_MY_APPS: '/developer/apps',
Expand Down
2 changes: 1 addition & 1 deletion src/core/__tests__/__snapshots__/router.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/client/installed"
path="/client/manage"
/>
<Connect(Component)
allow="CLIENT"
Expand Down

0 comments on commit 69f6518

Please # to comment.