Skip to content

Commit

Permalink
change save modal copy
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed May 26, 2023
1 parent 60f1956 commit 5e7814a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ interface Props {
description?: string;
showDescription: boolean;
isValid?: boolean;
customModalTitle?: string;
}

export interface SaveModalState {
Expand Down Expand Up @@ -141,11 +142,15 @@ export class SavedObjectSaveModal extends React.Component<Props, SaveModalState>
>
<EuiModalHeader>
<EuiModalHeaderTitle>
<FormattedMessage
id="savedObjects.saveModal.saveTitle"
defaultMessage="Save {objectType}"
values={{ objectType: this.props.objectType }}
/>
{this.props.customModalTitle ? (
this.props.customModalTitle
) : (
<FormattedMessage
id="savedObjects.saveModal.saveTitle"
defaultMessage="Save {objectType}"
values={{ objectType: this.props.objectType }}
/>
)}
</EuiModalHeaderTitle>
</EuiModalHeader>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ export const SaveModal = ({
showCopyOnSave={showCopyOnSave}
objectType={i18n.translate(
'xpack.lens.xyChart.annotations.saveAnnotationGroupToLibrary.objectType',
{ defaultMessage: 'annotation group' }
{ defaultMessage: 'group' }
)}
customModalTitle={i18n.translate(
'xpack.lens.xyChart.annotations.saveAnnotationGroupToLibrary.modalTitle',
{
defaultMessage: 'Save annotation group to library',
}
)}
showDescription={true}
confirmButtonLabel={
Expand Down

0 comments on commit 5e7814a

Please sign in to comment.