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 => {
|
||||
const isLibraryPanel = isPanelModelLibraryPanel(panel);
|
||||
const title = `${isLibraryPanel ? 'Changing' : 'Change to'} library panel`;
|
||||
const body = `Changing ${isLibraryPanel ? '' : 'to a'} library panel will remove any changes since last save.`;
|
||||
const title = `${isLibraryPanel ? 'Changing' : 'Replace with'} library panel`;
|
||||
const body = `${
|
||||
isLibraryPanel ? 'Changing' : 'Replacing with a'
|
||||
} library panel will remove any changes since last save.`;
|
||||
return (
|
||||
<ConfirmModal
|
||||
onConfirm={onConfirm}
|
||||
onDismiss={onDismiss}
|
||||
confirmText="Change"
|
||||
confirmText={isLibraryPanel ? 'Change' : 'Replace'}
|
||||
title={title}
|
||||
body={body}
|
||||
dismissText="Cancel"
|
||||
|
Loading…
Reference in New Issue
Block a user