-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Reactify visualize listing table * refactor toolbar => toolBar * use prompt prop to also cover loading and didn't match search logic. * Use default alignment instead of ternary * Add keys to array elements where missing * Add align property to KuiTableHeaderCell * Fix issue with filter not showing up in search tool bar * onCheckChanged => onSelectionChanged * pagerComponent => pager, actionComponent => actions * use singular verbiage when only 1 item is selected * exit early per style guide * fix lint errors * rename columns => header * Refactor KuiTableHeaderCell into KuiListingTable isChecked => isSelected contents => content refactor KuiTableRowCell internally * fix lint errors * areAllRowsChecked => areAllRowsSelected * improve itemSelectedCount logic in KuiListingTableToolBarFooter * React.Component => Component * make header data a variable, not a function * Only consider all rows selected if rows exist and they are all selected, not if there are no rows. * Adding a few KuiListingTable tests * Give one column sort attributes in examples page
- Loading branch information
1 parent
401e15b
commit 448fb5e
Showing
28 changed files
with
1,400 additions
and
822 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/core_plugins/kibana/public/visualize/listing/no_visualizations_prompt.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react'; | ||
|
||
import { | ||
KuiEmptyTablePrompt, | ||
KuiEmptyTablePromptPanel, | ||
KuiLinkButton, | ||
KuiButtonIcon, | ||
} from 'ui_framework/components'; | ||
|
||
export function NoVisualizationsPrompt() { | ||
return ( | ||
<KuiEmptyTablePromptPanel> | ||
<KuiEmptyTablePrompt | ||
actions={ | ||
<KuiLinkButton | ||
href="#/visualize/new" | ||
buttonType="primary" | ||
icon={<KuiButtonIcon type="create"/>} | ||
> | ||
Create a visualization | ||
</KuiLinkButton> | ||
} | ||
message="Looks like you don't have any visualizations. Let's create some!" | ||
/> | ||
</KuiEmptyTablePromptPanel> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.