-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow an authenticated user to enable collaborative editor for new board
Otherwise boards will use the legacy editor and no crdts.
- Loading branch information
1 parent
0dbf313
commit 408b865
Showing
5 changed files
with
54 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Fragment, h } from "harmaja" | ||
import * as L from "lonna" | ||
import { Checkbox } from "./components" | ||
|
||
type BoardCrdtModeSelectorProps = { | ||
useCollaborativeEditing: L.Atom<boolean> | ||
} | ||
export const BoardCrdtModeSelector = ({ useCollaborativeEditing }: BoardCrdtModeSelectorProps) => { | ||
return ( | ||
<div className="board-access-editor"> | ||
<div className="restrict-toggle"> | ||
<Checkbox checked={useCollaborativeEditing} /> | ||
<span> | ||
<label htmlFor="domain-restrict">Experimental: use collaborative text editor</label> | ||
</span> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters