Merge pull request #30 from Retr0-01/fix-layout-confirmations

fix: improve layout confirmation messages
This commit is contained in:
Khairul Hidayat 2025-09-23 19:54:49 +08:00 committed by GitHub
commit ee420fbf29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
const onRevert = () => {
if (
window.confirm("Are you sure you want to revert layout changes?") &&
window.confirm("Are you sure you want to revert any changes made?") &&
data?.version != null
) {
revertChanges.mutate(data?.version + 1);
@ -117,7 +117,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
const onApply = () => {
if (
window.confirm("Are you sure you want to revert layout changes?") &&
window.confirm("Are you sure you want to apply your layout changes?") &&
data?.version != null
) {
applyChanges.mutate(data?.version + 1);