Skip to content

Commit

Permalink
Change finish button for patching secrets to a toolbar button
Browse files Browse the repository at this point in the history
  • Loading branch information
Megan-Wright authored and a-roberts committed May 6, 2020
1 parent fd3841c commit 5623298
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/CreateSecret/ServiceAccountSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { injectIntl } from 'react-intl';

import { Table } from '@tektoncd/dashboard-components';
import { getErrorMessage } from '@tektoncd/dashboard-utils';
import { Button, InlineNotification } from 'carbon-components-react';
import { InlineNotification } from 'carbon-components-react';
import { DataConnected24 as Patch } from '@carbon/icons-react';

const ServiceAccountSelector = props => {
Expand Down Expand Up @@ -80,15 +80,6 @@ const ServiceAccountSelector = props => {
{ name }
)}
</h1>
<Button
iconDescription={intl.formatMessage({
id: 'dashboard.createSecret.finishButton',
defaultMessage: 'Finish'
})}
onClick={handleClose}
>
Finish
</Button>
</div>
<div>
<p>
Expand Down Expand Up @@ -118,6 +109,15 @@ const ServiceAccountSelector = props => {
},
{ kind: 'Secrets', selectedNamespace: namespace }
)}
toolbarButtons={[
{
onClick: handleClose,
text: intl.formatMessage({
id: 'dashboard.createSecret.finishButton',
defaultMessage: 'Finish'
})
}
]}
batchActionButtons={[
{
onClick: serviceAccountsSelected => {
Expand Down

0 comments on commit 5623298

Please sign in to comment.