Skip to content

Commit

Permalink
feat: allow to set deletePriorityReturnRoutes option when rebuildin…
Browse files Browse the repository at this point in the history
…g return routes

Ref #3936
  • Loading branch information
robertsLando committed Oct 17, 2024
1 parent 5b7cf9e commit 99f7b9a
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions src/mixins/InstancesMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,26 +182,33 @@ export default {
return
}
} else if (action === 'beginRebuildingRoutes') {
const { includeSleeping } = await this.app.confirm(
'Info',
'Rebuilding routes causes a lot of traffic, can take minutes up to hours and users have to expect degraded performance while it is going on',
'info',
{
confirmText: 'Rebuild',
inputs: [
{
type: 'checkbox',
label: 'Include sleeping nodes',
key: 'includeSleeping',
default: false,
},
],
},
)
const { includeSleeping, deletePriorityReturnRoutes } =
await this.app.confirm(
'Info',
'Rebuilding routes causes a lot of traffic, can take minutes up to hours and users have to expect degraded performance while it is going on',
'info',
{
confirmText: 'Rebuild',
inputs: [
{
type: 'checkbox',
label: 'Include sleeping nodes',
key: 'includeSleeping',
default: false,
},
{
type: 'checkbox',
label: 'Delete priority return routes',
key: 'deletePriorityReturnRoutes',
default: false,
},
],
},
)
if (includeSleeping === undefined) {
return
}
args.push({ includeSleeping })
args.push({ includeSleeping, deletePriorityReturnRoutes })
} else if (action === 'firmwareUpdateOTW') {
const result = await this.app.confirm(
'Firmware update OTW',
Expand Down

0 comments on commit 99f7b9a

Please sign in to comment.