mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Library Panels: Change wording of ChangeLibraryPanelModal (#33424)
"Changing library panel" -> "Replace with library panel"
This commit is contained in:
parent
2a8c36c976
commit
ed3b87f165
@ -12,13 +12,15 @@ export interface ChangeLibraryPanelModalProps {
|
|||||||
|
|
||||||
export const ChangeLibraryPanelModal = ({ onConfirm, onDismiss, panel }: ChangeLibraryPanelModalProps): JSX.Element => {
|
export const ChangeLibraryPanelModal = ({ onConfirm, onDismiss, panel }: ChangeLibraryPanelModalProps): JSX.Element => {
|
||||||
const isLibraryPanel = isPanelModelLibraryPanel(panel);
|
const isLibraryPanel = isPanelModelLibraryPanel(panel);
|
||||||
const title = `${isLibraryPanel ? 'Changing' : 'Change to'} library panel`;
|
const title = `${isLibraryPanel ? 'Changing' : 'Replace with'} library panel`;
|
||||||
const body = `Changing ${isLibraryPanel ? '' : 'to a'} library panel will remove any changes since last save.`;
|
const body = `${
|
||||||
|
isLibraryPanel ? 'Changing' : 'Replacing with a'
|
||||||
|
} library panel will remove any changes since last save.`;
|
||||||
return (
|
return (
|
||||||
<ConfirmModal
|
<ConfirmModal
|
||||||
onConfirm={onConfirm}
|
onConfirm={onConfirm}
|
||||||
onDismiss={onDismiss}
|
onDismiss={onDismiss}
|
||||||
confirmText="Change"
|
confirmText={isLibraryPanel ? 'Change' : 'Replace'}
|
||||||
title={title}
|
title={title}
|
||||||
body={body}
|
body={body}
|
||||||
dismissText="Cancel"
|
dismissText="Cancel"
|
||||||
|
Loading…
Reference in New Issue
Block a user