Compare the full board target in Replace board
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
57142ab2f2
commit
0e268f3f3c
2 files changed
+7
-5
No files matched your search
@@ -217,8 +217,8 @@
|
||||
// Replacing a different board closes its roles (see set_board in
|
||||
// app/jobs/sources.py); ask first, naming both boards and the count,
|
||||
// the same as Detach and a removed search already do.
|
||||
if (company.board && company.board !== board
|
||||
&& !window.confirm(`Replace ${company.name}'s board (${company.board}) `
|
||||
if (company.target && company.target !== board
|
||||
&& !window.confirm(`Replace ${company.name}'s board (${company.target}) `
|
||||
+ `with ${board}? Its ${count(company.open_roles, "open role")} close.`)) {
|
||||
return;
|
||||
}
|
||||
@@ -429,8 +429,8 @@
|
||||
// editor does, so it asks first too.
|
||||
const existing = [...companies.values()]
|
||||
.find((c) => c.name.toLowerCase() === name.toLowerCase());
|
||||
if (existing && existing.board && existing.board !== board
|
||||
&& !window.confirm(`Replace ${existing.name}'s board (${existing.board}) `
|
||||
if (existing && existing.target && existing.target !== board
|
||||
&& !window.confirm(`Replace ${existing.name}'s board (${existing.target}) `
|
||||
+ `with ${board}? Its ${count(existing.open_roles, "open role")} close.`)) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user