diff options
| author | Georgios Andreadis <info@gandreadis.com> | 2020-07-29 17:45:18 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-08-24 19:48:47 +0200 |
| commit | 780e81c5ea7bc5c7988ae2c49bc8e6808337ff25 (patch) | |
| tree | 92de51eae02e26fdbf0a703320626c13115e7a58 /frontend/src/components/app/sidebars | |
| parent | ceaddeb0f6927e0f99f7b140aba6a85dac0106fb (diff) | |
| parent | ac5b33c83f38f9b2799c0f2a871b86052121e8ac (diff) | |
Merge pull request #18 from atlarge-research/prefabs_wip
Add support for prefabs
Diffstat (limited to 'frontend/src/components/app/sidebars')
| -rw-r--r-- | frontend/src/components/app/sidebars/topology/rack/AddPrefabComponent.js | 10 | ||||
| -rw-r--r-- | frontend/src/components/app/sidebars/topology/rack/RackSidebarComponent.js | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/frontend/src/components/app/sidebars/topology/rack/AddPrefabComponent.js b/frontend/src/components/app/sidebars/topology/rack/AddPrefabComponent.js new file mode 100644 index 00000000..75418f9d --- /dev/null +++ b/frontend/src/components/app/sidebars/topology/rack/AddPrefabComponent.js @@ -0,0 +1,10 @@ +import React from 'react' + +const AddPrefabComponent = ({ onClick }) => ( + <div className="btn btn-primary btn-block" onClick={onClick}> + <span className="fa fa-floppy-o mr-2" /> + Save this rack to a prefab + </div> +) + +export default AddPrefabComponent diff --git a/frontend/src/components/app/sidebars/topology/rack/RackSidebarComponent.js b/frontend/src/components/app/sidebars/topology/rack/RackSidebarComponent.js index c04e46d8..d7127114 100644 --- a/frontend/src/components/app/sidebars/topology/rack/RackSidebarComponent.js +++ b/frontend/src/components/app/sidebars/topology/rack/RackSidebarComponent.js @@ -4,6 +4,7 @@ import DeleteRackContainer from '../../../../../containers/app/sidebars/topology import MachineListContainer from '../../../../../containers/app/sidebars/topology/rack/MachineListContainer' import RackNameContainer from '../../../../../containers/app/sidebars/topology/rack/RackNameContainer' import './RackSidebarComponent.css' +import AddPrefabContainer from '../../../../../containers/app/sidebars/topology/rack/AddPrefabContainer' const RackSidebarComponent = () => { return ( @@ -11,6 +12,7 @@ const RackSidebarComponent = () => { <div className="rack-sidebar-header-container"> <RackNameContainer /> <BackToRoomContainer /> + <AddPrefabContainer /> <DeleteRackContainer /> </div> <div className="machine-list-container mt-2"> |
