diff --git a/apps/remix-ide/src/app/tabs/locales/en/filePanel.json b/apps/remix-ide/src/app/tabs/locales/en/filePanel.json index 0e493a8e0c..9474dfbac2 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/filePanel.json +++ b/apps/remix-ide/src/app/tabs/locales/en/filePanel.json @@ -62,7 +62,8 @@ "filePanel.compileForNahmii": "Compile for Nahmii", "filePanel.createNewFile": "Create new file", "filePanel.createNewFolder": "Create new folder", - "filePanel.publishToGist": "Publish workspace to GitHub gist", + "filePanel.publishToGist": "Publish to Gist", + "filePanel.workspace.publishToGist": "Publish workspace to GitHub gist", "filePanel.uploadFile": "Upload files", "filePanel.uploadFolder": "Upload folder", "filePanel.updateGist": "Publish workspace to GitHub gist", diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx index bba7bbc39a..1ae9e7a9ad 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx @@ -26,20 +26,6 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { placement: 'top', platforms:[appPlatformTypes.web, appPlatformTypes.desktop] }, - { - action: 'publishToGist', - title: 'Publish current workspace to GitHub gist', - icon: 'fab fa-github', - placement: 'top', - platforms:[appPlatformTypes.web] - }, - { - action: 'updateGist', - title: 'Update the cdddurrent gist', - icon: 'fab fa-github', - placement: 'bottom-start', - platforms:[appPlatformTypes.web] - }, { action: 'uploadFile', title: 'Upload files into current workspace', diff --git a/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx b/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx index 00ee0db432..6d8fd1f0c6 100644 --- a/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx +++ b/libs/remix-ui/workspace/src/lib/components/workspace-hamburger.tsx @@ -9,6 +9,7 @@ export interface HamburgerMenuProps { downloadCurrentWorkspace: () => void deleteCurrentWorkspace: () => void deleteAllWorkspaces: () => void + pushChangesToGist: () => void cloneGitRepository: () => void downloadWorkspaces: () => void restoreBackup: () => void @@ -88,6 +89,17 @@ export function HamburgerMenu(props: HamburgerMenuProps) { platforms={[appPlatformTypes.web]} > + { + props.pushChangesToGist() + props.hideIconsMenu(!showIconsMenu) + }} + platforms={[appPlatformTypes.web]} + > +