forked from prometheus/alertmanager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow first day of week to be Sunday or Monday (prometheus#3093)
* Allow week to start at Monday or Sunday Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * refactor from Int to DataType Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * refactor to use name 'firstDayOfWeek' everywhere Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * CSS fine tuning Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * Check firstDayOfWeek with case statements Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * Change default to Sunday. Use radio buttons Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * Update ui/app/src/Views/Settings/Views.elm Co-authored-by: Andrey Kuzmin <unsoundscapes@gmail.com> Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> * Regenerate assets_vfsdata.go Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> Signed-off-by: Martin Schimandl <martin.schimandl@gmail.com> Co-authored-by: Andrey Kuzmin <unsoundscapes@gmail.com> Signed-off-by: Yijie Qin <qinyijie@amazon.com>
- Loading branch information
Showing
18 changed files
with
258 additions
and
45 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Views.Settings.Parsing exposing (settingsViewParser) | ||
|
||
import Url.Parser exposing (Parser, s) | ||
|
||
|
||
settingsViewParser : Parser a a | ||
settingsViewParser = | ||
s "settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Views.Settings.Types exposing (..) | ||
|
||
import Utils.DateTimePicker.Utils exposing (FirstDayOfWeek) | ||
|
||
|
||
type alias Model = | ||
{ firstDayOfWeek : FirstDayOfWeek | ||
} | ||
|
||
|
||
type SettingsMsg | ||
= UpdateFirstDayOfWeek String |
Oops, something went wrong.