Skip to content

Commit 240d2b6

Browse files
Disable remote execution tab if deployment is playground only (#2695)
* 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 <34370238+RichDom2185@users.noreply.github.com>
1 parent e65f2e9 commit 240d2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/playground/Playground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ import MobileWorkspace, {
115115
} from '../../commons/mobileWorkspace/MobileWorkspace';
116116
import { SideBarTab } from '../../commons/sideBar/SideBar';
117117
import { SideContentTab, SideContentType } from '../../commons/sideContent/SideContentTypes';
118-
import { Links } from '../../commons/utils/Constants';
118+
import Constants, { Links } from '../../commons/utils/Constants';
119119
import { generateLanguageIntroduction } from '../../commons/utils/IntroductionHelper';
120120
import { convertParamToBoolean, convertParamToInt } from '../../commons/utils/ParamParseHelper';
121121
import { IParsedQuery, parseQuery } from '../../commons/utils/QueryHelper';
@@ -776,7 +776,7 @@ const Playground: React.FC<PlaygroundProps> = props => {
776776
}
777777
}
778778

779-
if (!isSicpEditor) {
779+
if (!isSicpEditor && !Constants.playgroundOnly) {
780780
tabs.push(remoteExecutionTab);
781781
}
782782

0 commit comments

Comments
 (0)