hide option from context menu

Aniket-Engg-patch-1
aniket-engg 10 months ago committed by Aniket
parent 483477a7d9
commit 4a13ed8a71
  1. 4
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  2. 14
      libs/remix-ui/workspace/src/lib/utils/index.ts

@ -268,9 +268,9 @@ export const loadWorkspacePreset = async (template: WorkspaceTemplate = 'remixDe
// const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64') // const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64')
const ipfs = IpfsHttpClient({ port, host, protocol const ipfs = IpfsHttpClient({ port, host, protocol
, headers: { // , headers: {
// authorization: auth // authorization: auth
} // }
}) })
const hashed = bufferToHex(hash.keccakFromString(params.shareCode)) const hashed = bufferToHex(hash.keccakFromString(params.shareCode))

@ -59,13 +59,13 @@ export const contextMenuActions: MenuItems = [{
label: '', label: '',
group: 1 group: 1
}, { }, {
id: 'copyShareURL', // id: 'copyShareURL',
name: 'Copy share URL', // name: 'Copy share URL',
type: ['file'], // type: ['file'],
multiselect: false, // multiselect: false,
label: '', // label: '',
group: 1 // group: 1
}, { // }, {
id: 'download', id: 'download',
name: 'Download', name: 'Download',
type: ['file', 'folder', 'workspace'], type: ['file', 'folder', 'workspace'],

Loading…
Cancel
Save