mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 01:18:23 +00:00
Merge pull request #10934 from Rohan-3337/fix/inspector-tooltip-popups
Fix: Updated tooltips and pop-ups for copy path and copy value actions
This commit is contained in:
commit
95863de572
3 changed files with 7 additions and 7 deletions
|
|
@ -88,6 +88,7 @@ export const Inspector = ({
|
|||
layouts: allComponents[selectedComponentId].layouts,
|
||||
parent: allComponents[selectedComponentId].parent,
|
||||
};
|
||||
|
||||
const [showWidgetDeleteConfirmation, setWidgetDeleteConfirmation] = useState(false);
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const [newComponentName, setNewComponentName] = useState('');
|
||||
|
|
@ -461,8 +462,8 @@ export const Inspector = ({
|
|||
componentMeta.displayName === 'Toggle Switch (Legacy)'
|
||||
? 'Toggle (Legacy)'
|
||||
: componentMeta.displayName === 'Toggle Switch'
|
||||
? 'Toggle Switch'
|
||||
: componentMeta.component,
|
||||
? 'Toggle Switch'
|
||||
: componentMeta.component,
|
||||
})}
|
||||
</small>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -110,9 +110,8 @@ export const LeftSidebarInspector = ({
|
|||
if (!_.isEmpty(component) && component.name === key) {
|
||||
return {
|
||||
iconName: key,
|
||||
iconPath: `assets/images/icons/widgets/${
|
||||
component.component.toLowerCase() === 'radiobutton' ? 'radio-button' : component.component.toLowerCase()
|
||||
}.svg`,
|
||||
iconPath: `assets/images/icons/widgets/${component.component.toLowerCase() === 'radiobutton' ? 'radio-button' : component.component.toLowerCase()
|
||||
}.svg`,
|
||||
className: 'component-icon',
|
||||
};
|
||||
}
|
||||
|
|
@ -235,7 +234,7 @@ export const LeftSidebarInspector = ({
|
|||
const copyToClipboard = (data) => {
|
||||
const stringified = JSON.stringify(data, null, 2).replace(/\\/g, '');
|
||||
navigator.clipboard.writeText(stringified);
|
||||
return toast.success('Copied to the clipboard', { position: 'top-center' });
|
||||
return toast.success('Value copied to clipboard', { position: 'top-center' });
|
||||
};
|
||||
|
||||
const callbackActions = [
|
||||
|
|
|
|||
|
|
@ -53,4 +53,4 @@
|
|||
"prepare": "husky install",
|
||||
"update-version": "node update-version.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue