Skip to content

Commit

Permalink
refactor: rename Indefinite to Unlimited (#485)
Browse files Browse the repository at this point in the history
* refactor: rename `Indefinite` to `Unlimited`

* fix: update shelve durations for parity with yamcs
  • Loading branch information
ozyx authored Oct 17, 2024
1 parent 8316142 commit b83331a
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions src/providers/fault-mgmt-providers/fault-action-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class FaultActionProvider {
/**
* @typedef {Object} ShelveDuration
* @property {string} name - The name of the shelve duration
* @property {number|null} value - The value of the shelve duration in milliseconds, or null for indefinite
* @property {number|null} value - The value of the shelve duration in milliseconds, or null for unlimited
*/

/**
Expand All @@ -53,19 +53,27 @@ export default class FaultActionProvider {
getShelveDurations() {
return [
{
name: '5 Minutes',
value: 300000
name: '15 Minutes',
value: 1000 * 60 * 15
},
{
name: '10 Minutes',
value: 600000
name: '30 Minutes',
value: 1000 * 60 * 30
},
{
name: '15 Minutes',
value: 900000
name: '1 Hour',
value: 1000 * 60 * 60
},
{
name: '2 Hours',
value: 1000 * 60 * 60 * 2
},
{
name: '1 Day',
value: 1000 * 60 * 60 * 24
},
{
name: 'Indefinite',
name: 'Unlimited',
value: null
}
];
Expand Down

0 comments on commit b83331a

Please sign in to comment.