Skip to content

Commit

Permalink
Merge pull request rancher#9925 from ly5156/severity-drop-down
Browse files Browse the repository at this point in the history
fix(AleringRule): fix servrity options value error
  • Loading branch information
torchiaf authored Nov 24, 2023
2 parents a45ac56 + 24b9653 commit 498aac1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions shell/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,18 @@ export default {
selectedSeverityLabel: null,
ignoredAnnotations: IGNORED_ANNOTATIONS,
severityOptions: [
this.t('prometheusRule.alertingRules.labels.severity.choices.critical'),
this.t('prometheusRule.alertingRules.labels.severity.choices.warning'),
this.t('prometheusRule.alertingRules.labels.severity.choices.none'),
{
label: this.t('prometheusRule.alertingRules.labels.severity.choices.critical'),
value: 'critical'
},
{
label: this.t('prometheusRule.alertingRules.labels.severity.choices.warning'),
value: 'warning'
},
{
label: this.t('prometheusRule.alertingRules.labels.severity.choices.none'),
value: 'none'
},
],
};
},
Expand Down

0 comments on commit 498aac1

Please sign in to comment.