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

Set optional drawer menu for share ( see #1632) #1698

Merged
merged 3 commits into from
Apr 7, 2017

Conversation

offtherailz
Copy link
Member

  • Documented drawer menu plugin
  • Added a forceDrawer and a hide option
  • Improved share to manage forceDrawer option
    image

 - Documented drawer menu plugin
 - Added a forceDrawer and a hide option
 - Improved share to manage forceDrawer option
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.006%) to 77.297% when pulling e7b9ef8 on offtherailz:share-drawer-force into f7437a4 on geosolutions-it:master.

@@ -20,7 +20,8 @@ const {Button, Glyphicon, Panel} = require('react-bootstrap');
const Section = require('./drawer/Section');

const {partialRight} = require('lodash');

const url = require('url');
const query = url.parse(window.location.href, true).query;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't like plugins directly depending from the request. We should use dynamic plugin configuration of plugins to:

  • add dynamicity to hide (currently it doesn't support expressions)
  • add request params to properties available in expressions (e.g. {request.forceDrawer})

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 77.286% when pulling eff17e2 on offtherailz:share-drawer-force into f7437a4 on geosolutions-it:master.

const DrawerMenu = React.createClass({
propTypes: {
items: React.PropTypes.array,
active: React.PropTypes.string,
hideButton: React.PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove it, please

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 77.363% when pulling a9903cf on offtherailz:share-drawer-force into f7437a4 on geosolutions-it:master.

@mbarto mbarto merged commit 66f434c into geosolutions-it:master Apr 7, 2017
@offtherailz offtherailz deleted the share-drawer-force branch July 18, 2018 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants