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

[Canvas] Fixes toggle between edit mode/read only mode #41293

Merged
merged 3 commits into from
Jul 17, 2019

Conversation

cqliu1
Copy link
Contributor

@cqliu1 cqliu1 commented Jul 16, 2019

Summary

Closes #39813.

This was introduced in #38832 (specifically this line https://github.com/elastic/kibana/pull/38832/files#diff-650bbe73e863a4dcf8be48d755eae887L28). It called the setWriteable action directly (which doesn't do anything) instead of dispatching the action to redux, so the redux state wasn't being updated.

This fixes that bug and reenables the edit mode/read only mode toggle.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

- [ ] This was checked for cross-browser compatibility, including a check against IE11
- [ ] Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n support
- [ ] Documentation was added for features that require explanation or tutorials
- [ ] Unit or functional tests were updated or added to match the most common scenarios
- [ ] This was checked for keyboard-only and screenreader accessibility

For maintainers

@ryankeairns
Copy link
Contributor

Small design PR here: cqliu1#10

@cqliu1 cqliu1 requested a review from ryankeairns July 16, 2019 20:27
Copy link
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

LGTM. Able to toggle between read-only and edit mode, as before.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cqliu1 cqliu1 marked this pull request as ready for review July 17, 2019 03:20
@cqliu1 cqliu1 requested review from a team as code owners July 17, 2019 03:20
@cqliu1 cqliu1 added bug Fixes for quality problems that affect the customer experience impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.3.0 v7.4.0 v8.0.0 labels Jul 17, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-canvas

@cqliu1 cqliu1 merged commit a5e4d2f into elastic:master Jul 17, 2019
@cqliu1 cqliu1 deleted the fix/edit-mode branch July 17, 2019 03:23
cqliu1 added a commit to cqliu1/kibana that referenced this pull request Jul 17, 2019
* Fixed mergeProps in workpad_header/index.js

* set header height
cqliu1 added a commit to cqliu1/kibana that referenced this pull request Jul 17, 2019
* Fixed mergeProps in workpad_header/index.js

* set header height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort release_note:skip Skip the PR/issue when compiling release notes Team:Presentation Presentation Team for Dashboard, Input Controls, and Canvas v7.3.0 v7.4.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canvas- Unable to hide editing controls on workpad.
3 participants