1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix collection queryParams bug

This commit is contained in:
Tim Daubenschütz 2015-07-13 12:06:52 +02:00
parent 5011304939
commit c8649306d4

View File

@ -27,7 +27,7 @@ import { getLangText } from '../utils/lang_utils';
let Header = React.createClass({
mixins: [Router.Navigation],
mixins: [Router.Navigation, Router.State],
getInitialState() {
return mergeOptions(WhitelabelStore.getState(), UserStore.getState());
@ -97,7 +97,8 @@ let Header = React.createClass({
<MenuItem eventKey="3" onClick={this.handleLogout}>{getLangText('Log out')}</MenuItem>
</DropdownButton>
);
collection = <NavItemLink to="pieces">{getLangText('COLLECTION')}</NavItemLink>;
collection = <NavItemLink to="pieces" query={this.getQuery()}>{getLangText('COLLECTION')}</NavItemLink>;
addNewWork = <NavItemLink to="register_piece">+ {getLangText('NEW WORK')}</NavItemLink>;
}
else {