Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

Commit

Permalink
SF
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Lancha authored and jbalsas committed Dec 28, 2017
1 parent e64322f commit f0126cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions packages/clay-management-toolbar/src/ClayManagementToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ClayManagementToolbar extends Component {
* @private
*/
handleCloseMobileSearchClick_() {
this.showMobileSearch_ = false;
this.showSearch_ = false;
}

/**
Expand All @@ -64,7 +64,7 @@ class ClayManagementToolbar extends Component {
* @private
*/
handleOpenMobileSearchClick_() {
this.showMobileSearch_ = true;
this.showSearch_ = true;
}

/**
Expand Down Expand Up @@ -223,13 +223,14 @@ ClayManagementToolbar.STATE = {
selectedItems: Config.number(),

/**
* Flag to indicate if search should be shown in mobile or not.
* Flag to indicate if search should be shown in or not. This is for the
* hide/show interaction in small devices.
* @instance
* @memberof ClayManagementToolbar
* @type {?bool}
* @default false
*/
showMobileSearch_: Config.bool()
showSearch_: Config.bool()
.internal()
.value(false),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{@param? searchInputName: string}
{@param? selectable: bool}
{@param? selectedItems: number}
{@param? showMobileSearch_: bool}
{@param? showSearch_: bool}
{@param? sortingOrder: string}
{@param? totalItems: number}
{@param? viewTypes: list<[
Expand Down Expand Up @@ -80,7 +80,7 @@
{param searchFormName: $searchFormName /}
{param searchInputName: $searchInputName /}
{param selectable: $selectable /}
{param showMobileSearch_: $showMobileSearch_ /}
{param showSearch_: $showSearch_ /}
{param sortingOrder: $sortingOrder /}
{param spritemap: $spritemap /}
{param viewTypes: $viewTypes /}
Expand Down Expand Up @@ -194,7 +194,7 @@
{@param? searchFormName: string}
{@param? searchInputName: string}
{@param? selectable: bool}
{@param? showMobileSearch_: bool}
{@param? showSearch_: bool}
{@param? sortingOrder: string}
{@param? viewTypes: list<[
active: bool,
Expand Down Expand Up @@ -269,7 +269,7 @@

{let $searchClasses kind="text"}
navbar-form navbar-form-autofit navbar-overlay navbar-overlay-sm-down
{if $showMobileSearch_}
{if $showSearch_}
{sp}show
{/if}
{/let}
Expand Down

0 comments on commit f0126cf

Please sign in to comment.