Skip to content

Commit

Permalink
Some more frivolous code from last commit
Browse files Browse the repository at this point in the history
Signed-off-by: Kshitij Tandon <[email protected]>
  • Loading branch information
tandonks committed Aug 21, 2024
1 parent 93c2f96 commit 1e794ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export interface SearchControlsProps {
search: string;
selectedTypes: string[];
};
useNewUX?: boolean;
onSearchChange: (args: SearchControlsProps["value"]) => void;
}

Expand Down Expand Up @@ -47,7 +46,6 @@ export default function SearchControls(props: SearchControlsProps) {
}}
onChange={(val) => onChange("selectedTypes", val || [])}
value={state.selectedTypes}
useNewUX={props.useNewUX}
options={[
{
label: IndicesUpdateMode.alias,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ class ComposableTemplates extends MDSEnabledComponent<ComposableTemplatesProps,
search: this.state.search,
selectedTypes: this.state.selectedTypes,
}}
useNewUX={useNewUX}
onSearchChange={this.onSearchChange}
/>
<EuiHorizontalRule margin="xs" />
Expand Down Expand Up @@ -515,7 +514,6 @@ class ComposableTemplates extends MDSEnabledComponent<ComposableTemplatesProps,
search: this.state.search,
selectedTypes: this.state.selectedTypes,
}}
useNewUX={useNewUX}
onSearchChange={this.onSearchChange}
/>
<EuiHorizontalRule margin="xs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,15 @@ export class SnapshotPolicies extends MDSEnabledComponent<SnapshotPoliciesProps,
</EuiContextMenuItem>,
];
const actionsButton = (
<EuiButton
<EuiSmallButton
iconType="arrowDown"
iconSide="right"
disabled={!selectedItems.length}
onClick={this.onActionButtonClick}
data-test-subj="actionButton"
>
Actions
</EuiButton>
</EuiSmallButton>
);
const actions = [
<EuiSmallButton iconType="refresh" onClick={this.getPolicies} data-test-subj="refreshButton">
Expand Down

0 comments on commit 1e794ad

Please sign in to comment.