|
|
|
@ -4,9 +4,10 @@ import { HamburgerMenuItem } from './workspace-hamburger-item' |
|
|
|
|
|
|
|
|
|
export interface HamburgerMenuProps { |
|
|
|
|
createWorkspace: () => void, |
|
|
|
|
renameCurrentWorkspace: () => void, |
|
|
|
|
downloadCurrentWorkspace: () => void, |
|
|
|
|
deleteCurrentWorkspace: () => void, |
|
|
|
|
deleteAllWorkspaces: () => void, |
|
|
|
|
renameCurrentWorkspace: () => void, |
|
|
|
|
cloneGitRepository: () => void, |
|
|
|
|
downloadWorkspaces: () => void, |
|
|
|
|
restoreBackup: () => void, |
|
|
|
@ -27,24 +28,27 @@ export function HamburgerMenu (props: HamburgerMenuProps) { |
|
|
|
|
props.createWorkspace() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<HamburgerMenuItem kind='delete' fa='far fa-trash' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.deleteCurrentWorkspace() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<HamburgerMenuItem kind='deleteAll' fa='far fa-trash-alt' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.deleteAllWorkspaces() |
|
|
|
|
<HamburgerMenuItem kind='clone' fa='fab fa-github' hideOption={hideWorkspaceOptions} actionOnClick={() => { |
|
|
|
|
props.cloneGitRepository() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<HamburgerMenuItem kind='rename' fa='far fa-edit' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.renameCurrentWorkspace() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<HamburgerMenuItem kind='download' fa='far fa-arrow-alt-down' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.downloadCurrentWorkspace() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<HamburgerMenuItem kind='delete' fa='far fa-trash' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.deleteCurrentWorkspace() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<Dropdown.Divider className="border mb-0 mt-0 remixui_menuhr" style={{ pointerEvents: 'none' }} /> |
|
|
|
|
<HamburgerMenuItem kind='clone' fa='fab fa-github' hideOption={hideWorkspaceOptions} actionOnClick={() => { |
|
|
|
|
props.cloneGitRepository() |
|
|
|
|
<HamburgerMenuItem kind='deleteAll' fa='far fa-trash-alt' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.deleteAllWorkspaces() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|
}}></HamburgerMenuItem> |
|
|
|
|
<Dropdown.Divider className="border mt-0 mb-0 remixui_menuhr" style={{ pointerEvents: 'none' }}/> |
|
|
|
|
<HamburgerMenuItem kind='backup' fa='far fa-download' hideOption={hideWorkspaceOptions || hideLocalhostOptions} actionOnClick={() => { |
|
|
|
|
props.downloadWorkspaces() |
|
|
|
|
props.hideIconsMenu(!showIconsMenu) |
|
|
|
|