pull/5370/head
yann300 2 years ago committed by Aniket
parent a78567790a
commit 58f354071f
  1. 4
      libs/remix-ui/tabs/src/lib/remix-ui-tabs.tsx

@ -164,8 +164,8 @@ export const TabsUI = (props: TabsUIProps) => {
data-id='play-editor' data-id='play-editor'
className="btn text-success py-0" className="btn text-success py-0"
disabled={!(tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' || tabsState.currentExt === 'sol')} disabled={!(tabsState.currentExt === 'js' || tabsState.currentExt === 'ts' || tabsState.currentExt === 'sol')}
onClick={async () => { onClick={async () => {
const path = active().substr(active().indexOf('/') + 1, active().length) const path = active().substr(active().indexOf('/') + 1, active().length)
const content = await props.plugin.call('fileManager', "readFile", path) const content = await props.plugin.call('fileManager', "readFile", path)
if (tabsState.currentExt === 'js' || tabsState.currentExt === 'ts') { if (tabsState.currentExt === 'js' || tabsState.currentExt === 'ts') {
await props.plugin.call('scriptRunner', 'execute', content, path) await props.plugin.call('scriptRunner', 'execute', content, path)

Loading…
Cancel
Save