You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 663e0a4
Browse filesBrowse the repository at this point in the historyBrowse files
// DialogSelect doesn't take a top-level description block, so the
298
303
// memory-sync disclosure is packed into the title, matching the
299
304
// AlreadyLinkedDialog convention above.
300
-
return`${props.verb} workspace "${props.workspaceName}"${suffix} — Saved memory blocks will sync to this workspace if memory is enabled for it.`
305
+
return`${props.verb} workspace "${props.workspaceName}"${suffix} — Saved memory blocks will sync to this workspace if memory is enabled for it.${privacy}`
301
306
}
302
307
constoptions=()=>{
303
308
if(props.manageUrl){
@@ -548,7 +553,14 @@ export async function createAndBindInline(
548
553
if(errinstanceofConflictError&&!rebindFrom){
549
554
api.ui.toast({
550
555
variant: "warning",
551
-
message: `This project is already linked to "${err.detail.existing_datamate_name??"another workspace"}". Use the palette's "Link this project to a workspace" to change.`,
556
+
// A withheld name means the binding belongs to a workspace this user cannot see, so
557
+
// the palette it would otherwise point at lists nothing to pick — the advice sent
558
+
// them round a loop with no exit. The three other conflict toasts in this file already
559
+
// branch here; this one did not.
560
+
message: isHiddenBindingConflict(err)
561
+
? HIDDEN_BINDING_MESSAGE
562
+
: `This project is already linked to "${err.detail.existing_datamate_name??"another workspace"}". Use the palette's "Link this project to a workspace" to change.`,
563
+
duration: 15_000,
552
564
})
553
565
}else{
554
566
api.ui.toast({
@@ -618,7 +630,11 @@ export async function createAndBindInline(
0 commit comments