Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rename Indefinite to Unlimited #485

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading