Skip to content

Commit ad488b5

Browse files
committed
disable feature detection
1 parent 902230e commit ad488b5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/packages/frontend/frame-editors/x11-editor/x11.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export function X11({
374374

375375
if (disabled) {
376376
const no_info = config_unknown
377-
? "There is no X11 configuration information available. You might have to restart this project"
377+
? "There is no X11 configuration information available. You might have to restart this project."
378378
: "";
379379
return (
380380
<div className="smc-vfill" style={{ padding: "100px auto auto auto" }}>

src/packages/frontend/project/use-available-features.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
import { useTypedRedux } from "@cocalc/frontend/app-framework";
77
import { ALL_AVAIL } from "@cocalc/frontend/project_configuration";
88

9+
// ws: I fundamentally disagree with this. We should show what we support,
10+
// and make it easy to install support for things that aren't installed.
11+
const DISABLED = true;
12+
913
export function useAvailableFeatures(project_id: string) {
14+
if (DISABLED) {
15+
return ALL_AVAIL;
16+
}
17+
1018
const available_features = useTypedRedux(
1119
{ project_id },
12-
"available_features"
20+
"available_features",
1321
);
1422

1523
// If the configuration is not yet available, we default to the *most likely*

0 commit comments

Comments
 (0)