Skip to content

Commit

Permalink
fix(ui): do not allow to call rebuildNodeRoutes to multiple nodes
Browse files Browse the repository at this point in the history
Ref #3559
  • Loading branch information
robertsLando committed Jul 15, 2024
1 parent 0443565 commit 9c80bd3
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions src/views/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,22 @@ export default {
icon: 'code',
desc: 'Write a custom JS function using the ZwaveJS Driver',
},
{
text: 'Rebuild Routes',
options: [
{
name: 'Rebuild',
action: 'rebuildNodeRoutes',
args: {
confirm:
'Rebuilding routes causes a lot of traffic, can take minutes up to hours and you can expect degraded performance while it is going on',
},
},
],
icon: 'healing',
color: 'warning',
desc: 'Discover and assign new routes from nodes to the controller and other nodes.',
},
{
text: 'NVM Management',
options: [
Expand Down Expand Up @@ -332,6 +348,7 @@ export default {
return valid || 'This field is required.'
},
},
/** Actions to show when there is one or more selected nodes in table */
selectedActions: [
{
text: 'Re-interview Node',
Expand Down Expand Up @@ -359,22 +376,6 @@ export default {
icon: 'cached',
desc: 'Update all CC values and metadata. Use only when many values seems stale',
},
{
text: 'Rebuild Routes',
options: [
{
name: 'Rebuild',
action: 'rebuildNodeRoutes',
args: {
confirm:
'Rebuilding routes causes a lot of traffic, can take minutes up to hours and you can expect degraded performance while it is going on',
},
},
],
icon: 'healing',
color: 'warning',
desc: 'Discover and assign new routes from nodes to the controller and other nodes.',
},
{
text: 'Ping',
options: [
Expand Down

0 comments on commit 9c80bd3

Please sign in to comment.