Skip to content

Commit

Permalink
fix: change order of menu tabs, change 'IP address/Group' field from …
Browse files Browse the repository at this point in the history
…group devices configuration to 'IP address'
  • Loading branch information
wojtekzyla committed Sep 28, 2022
1 parent 49c046f commit 156fc6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions frontend/packages/manager/src/Manager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ function Uncontrolled() {
</ProfilesValidationContxtProvider>
</ProfileContxtProvider>
</TabLayout.Panel>
<TabLayout.Panel label="Inventory" panelId="two">
<InventoryContextProvider>
<InventoryDevicesValidationContxtProvider>
<InventoryPage />
</InventoryDevicesValidationContxtProvider>
</InventoryContextProvider>
</TabLayout.Panel>
<TabLayout.Panel label="Groups" panelId="three">
<TabLayout.Panel label="Groups" panelId="two">
<GroupContextProvider>
<InventoryDevicesValidationContxtProvider>
<GroupsPage />
</InventoryDevicesValidationContxtProvider>
</GroupContextProvider>
</TabLayout.Panel>
<TabLayout.Panel label="Inventory" panelId="three">
<InventoryContextProvider>
<InventoryDevicesValidationContxtProvider>
<InventoryPage />
</InventoryDevicesValidationContxtProvider>
</InventoryContextProvider>
</TabLayout.Panel>
</TabLayout>
</ButtonsContextProvider>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function AddDeviceModal(){
<Modal onRequestClose={handleRequestClose} open={GrCtx.addDeviceOpen} style={{ width: '600px' }}>
<Modal.Header title={((GrCtx.isDeviceEdit) ? `Edit device` : `Add new device to group ${GrCtx.groupName}`)} onRequestClose={handleRequestClose} />
<Modal.Body>
<ControlGroup label="IP address/Group">
<ControlGroup label="IP address">
<div style={validationGroup}>
<Text value={GrCtx.address} onChange={handleChangeAddress} error={((ValCtx.addressErrors) ? true : false)}/>
{((ValCtx.addressErrors) ? ValCtx.addressErrors.map((el) => <P key={createDOMID()} style={validationMessage}>{el}</P>) : <P/>)}
Expand Down

0 comments on commit 156fc6d

Please sign in to comment.