Skip to content

Commit

Permalink
Disable remote execution tab if deployment is playground only (#2695)
Browse files Browse the repository at this point in the history
* Add env flag to allow disabling remote execution

* Revert "Add env flag to allow disabling remote execution"

This reverts commit 2da79be.

* Hide remote execution tab if deployment is playground only

---------

Co-authored-by: Richard Dominick <[email protected]>
  • Loading branch information
sayomaki and RichDom2185 authored Feb 1, 2024
1 parent e65f2e9 commit 240d2b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/playground/Playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ import MobileWorkspace, {
} from '../../commons/mobileWorkspace/MobileWorkspace';
import { SideBarTab } from '../../commons/sideBar/SideBar';
import { SideContentTab, SideContentType } from '../../commons/sideContent/SideContentTypes';
import { Links } from '../../commons/utils/Constants';
import Constants, { Links } from '../../commons/utils/Constants';
import { generateLanguageIntroduction } from '../../commons/utils/IntroductionHelper';
import { convertParamToBoolean, convertParamToInt } from '../../commons/utils/ParamParseHelper';
import { IParsedQuery, parseQuery } from '../../commons/utils/QueryHelper';
Expand Down Expand Up @@ -776,7 +776,7 @@ const Playground: React.FC<PlaygroundProps> = props => {
}
}

if (!isSicpEditor) {
if (!isSicpEditor && !Constants.playgroundOnly) {
tabs.push(remoteExecutionTab);
}

Expand Down

0 comments on commit 240d2b6

Please sign in to comment.