feat(app): add servers tab to settings dialog (#29675)

This commit is contained in:
Brendan Allan
2026-06-03 08:25:45 +00:00
committed by GitHub
parent c36a433a1f
commit c6f684366a
30 changed files with 921 additions and 413 deletions
+3 -1
View File
@@ -1468,6 +1468,8 @@ export default function Layout(props: ParentProps) {
}
async function chooseProject() {
const conn = server.current
if (!conn) return
function resolve(result: string | string[] | null) {
if (Array.isArray(result)) {
for (const directory of result) {
@@ -1490,7 +1492,7 @@ export default function Layout(props: ParentProps) {
void import("@/components/dialog-select-directory").then((x) => {
if (dialogDead || dialogRun !== run) return
dialog.show(
() => <x.DialogSelectDirectory multiple={true} onSelect={resolve} />,
() => <x.DialogSelectDirectory multiple={true} onSelect={resolve} server={conn} />,
() => resolve(null),
)
})