Skip to content

Commit

Permalink
Update panel options (#204)
Browse files Browse the repository at this point in the history
* Update panel options

* Update options.ts
  • Loading branch information
mikhail-vl authored Jun 12, 2024
1 parent 6967130 commit 8ca817d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Updated dependencies (#200)
- Added display dashboard annotations (#194)
- Added Portuguese language (#201)
- Updated toolbar and messages to the selected language (#203)

## 3.1.0 (2024-05-19)

Expand Down
10 changes: 5 additions & 5 deletions src/constants/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const COLOR_OPTIONS = (t: TFunction) => [
* Annotations Options
*/
export const ANNOTATIONS_OPTIONS = (t: TFunction) => [
{ value: true, label: t('panelOptions.annotations.annotations.options.enabled'), icon: 'toggle-on' },
{ value: false, label: t('panelOptions.annotations.annotations.options.disabled'), icon: 'toggle-off' },
{ value: true, label: t('panelOptions.annotations.annotations.options.enabled'), icon: 'comments-alt' },
{ value: false, label: t('panelOptions.annotations.annotations.options.disabled') },
];

/**
Expand Down Expand Up @@ -60,9 +60,9 @@ export const DATE_FORMAT_OPTIONS = (t: TFunction) =>
* TIME RANGE OPTIONS
*/
export const TIME_RANGE_TYPE_OPTIONS = (t: TFunction) => [
{ value: TimeRangeType.DEFAULT, label: t('panelOptions.timeRangeType.options.default') },
{ value: TimeRangeType.MANUAL, label: t('panelOptions.timeRangeType.options.manual') },
{ value: TimeRangeType.VARIABLE, label: t('panelOptions.timeRangeType.options.variable') },
{ value: TimeRangeType.DEFAULT, label: t('panelOptions.timeRangeType.options.default'), icon: 'dashboard' },
{ value: TimeRangeType.MANUAL, label: t('panelOptions.timeRangeType.options.manual'), icon: 'pen' },
{ value: TimeRangeType.VARIABLE, label: t('panelOptions.timeRangeType.options.variable'), icon: 'sliders-v-alt' },
];

/**
Expand Down
16 changes: 8 additions & 8 deletions src/i18n/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@
}
},
"endTimeRange": {
"description": "Set end time",
"label": "End time range (to)"
"description": "Set 'to' time",
"label": "End time range"
},
"endTimeVariable": {
"description": "Select variable",
"label": "End time range (to)"
"description": "Select 'to' variable",
"label": "End time range"
},
"eventField": {
"options": {
Expand Down Expand Up @@ -175,12 +175,12 @@
"label": "Scroll To Time"
},
"startTimeRange": {
"description": "Set Start time",
"label": "Start time range (from)"
"description": "Set 'from' time",
"label": "Start time range"
},
"startTimeVariable": {
"description": "Select variable",
"label": "Start time range (from)"
"description": "Select 'from' variable",
"label": "Start time range"
},
"timeRangeType": {
"description": "Time Range source used for Calendar",
Expand Down

0 comments on commit 8ca817d

Please sign in to comment.