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

grafana/ui: Timezone picker #19364

Merged
merged 4 commits into from
Sep 24, 2019
Merged

grafana/ui: Timezone picker #19364

merged 4 commits into from
Sep 24, 2019

Conversation

peterholmberg
Copy link
Contributor

What this PR does / why we need it:
Adds a TimeZone picker.

@peterholmberg peterholmberg marked this pull request as ready for review September 24, 2019 12:50
return group.options.find(option => option.value === value);
});

console.log(selectedValue);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log :)

Copy link
Member

@torkelo torkelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! just some minor nitpicks.

];
};

const europeZones = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you move these into the getTimeZoneGroups function so we do not need to create these arrays in global scope?

@peterholmberg peterholmberg merged commit bb0a438 into master Sep 24, 2019
@peterholmberg peterholmberg deleted the timezone-picker branch September 24, 2019 13:34
@peterholmberg peterholmberg added this to the 6.5 milestone Sep 24, 2019
ryantxu added a commit that referenced this pull request Sep 24, 2019
* grafana/master:
  MySQL: Limit datasource error details returned from the backend (#19373)
  MySQL, Postgres: Update raw sql when query builder updates (#19209)
  MySQL, Postgres, MSSQL: Fix validating query with template variables in alert  (#19237)
  Explore: Do not send explicit maxDataPoints for logs. (#19235)
  grafana/ui: Add Timezone picker (#19364)
  Heatmap: use DataFrame rather than LegacyResponseData (#19026)
  Explore: Refactor mode selection (#19356)
  Dashboard: Fix export for sharing when panels use default data source (#19315)
  Azure Monitor: Revert support for cross resource queries (#19115)" (#19346)
  grafana/ui: Add electrical units mAh and kAh (#19314)
  grafana/ui: Add Indian Rupee (INR) to currencies (#19201)
  Chore: Bump typescript to version 3.6.3 (#19308)
ryantxu added a commit to ryantxu/grafana that referenced this pull request Sep 24, 2019
…uery

* grafana/master:
  MySQL: Limit datasource error details returned from the backend (grafana#19373)
  MySQL, Postgres: Update raw sql when query builder updates (grafana#19209)
  MySQL, Postgres, MSSQL: Fix validating query with template variables in alert  (grafana#19237)
  Explore: Do not send explicit maxDataPoints for logs. (grafana#19235)
  grafana/ui: Add Timezone picker (grafana#19364)
  Heatmap: use DataFrame rather than LegacyResponseData (grafana#19026)
  Explore: Refactor mode selection (grafana#19356)
  Dashboard: Fix export for sharing when panels use default data source (grafana#19315)
  Azure Monitor: Revert support for cross resource queries (grafana#19115)" (grafana#19346)
  grafana/ui: Add electrical units mAh and kAh (grafana#19314)
  grafana/ui: Add Indian Rupee (INR) to currencies (grafana#19201)
  Chore: Bump typescript to version 3.6.3 (grafana#19308)
  Explore: Refactor live tail controls (grafana#19328)
  Docs: Documentation for return-to-dashboard feature (grafana#19198)
  Select: Set placeholder color (grafana#19309)
  Keybindings: Improve esc / exit / blur logic (grafana#19320)
  Plugins: Skips existence of module.js for renderer plugins (grafana#19318)
  Explore: Fix unsubscribing from Loki websocket (grafana#19263)
hugohaggmark pushed a commit that referenced this pull request Oct 1, 2019
* first things and story

* fixed data structure and fixed picker

* remove console log

* move variables into global scope

(cherry picked from commit bb0a438)
hugohaggmark pushed a commit that referenced this pull request Oct 1, 2019
* first things and story

* fixed data structure and fixed picker

* remove console log

* move variables into global scope

(cherry picked from commit bb0a438)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants