Commit 6a8626b
committed
fix(FR-2820): decide row actions from record.is_active instead of outer tab state
The deactivate/activate action choice was driven by the isActiveTab prop, which
flips immediately on segment change while the GraphQL response is still loading
(useDeferredValue). The result: old rows briefly show actions that don't match
their actual state.
UserManagement decides per-record (record.status === 'active'), so its rows
stay consistent during transitions. Apply the same approach here using
record.is_active, and remove the now-redundant isActiveTab prop.1 parent 0a40637 commit 6a8626b
2 files changed
Lines changed: 5 additions & 6 deletions
File tree
- packages/backend.ai-ui/src/components/fragments
- react/src/pages
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
| 149 | + | |
152 | 150 | | |
153 | 151 | | |
154 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
| |||
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
225 | | - | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
0 commit comments