Removed unused emit

pull/5370/head
ioedeveloper 3 years ago
parent 223f7f556e
commit 3eb885962a
  1. 6
      apps/remix-ide-e2e/src/tests/solidityUnittests.spec.ts
  2. 1
      libs/remix-ui/workspace/src/lib/actions/workspace.ts
  3. 3
      libs/remix-ui/workspace/src/lib/reducers/workspace.ts

@ -167,6 +167,12 @@ module.exports = {
.execute(function () { document.querySelector('*[data-id="modalDialogCustomPromptTextCreate"]')['value'] = 'workspace_new' })
.waitForElementVisible('*[data-id="fileSystem-modal-footer-ok-react"]')
.click('*[data-id="fileSystem-modal-footer-ok-react"]')
.getLog('browser', function (logEntriesArray) {
console.log('Log length: ' + logEntriesArray.length)
logEntriesArray.forEach(function (log) {
console.log('[' + log.level + '] ' + log.timestamp + ' : ' + log.message)
})
})
.waitForElementPresent('*[data-id="workspacesSelect"] option[value="workspace_new"]')
// end of creating
.clickLaunchIcon('solidityUnitTesting')

@ -185,7 +185,6 @@ export const renameWorkspaceFromProvider = async (oldName: string, workspaceName
const workspacesPath = workspaceProvider.workspacesPath
browserProvider.rename('browser/' + workspacesPath + '/' + oldName, 'browser/' + workspacesPath + '/' + workspaceName, true)
workspaceProvider.setWorkspace(workspaceName)
plugin.emit('renameWorkspace', { name: workspaceName })
plugin.setWorkspaces(await getWorkspaces())
}

@ -450,7 +450,8 @@ export const browserReducer = (state = browserInitialState, action: Action) => {
browser: {
...state.browser,
currentWorkspace: payload.workspaceName,
workspaces: [...workspaces, payload.workspaceName]
workspaces: [...workspaces, payload.workspaceName],
expandPath: []
}
}
}

Loading…
Cancel
Save