mirror of
https://github.com/khairul169/garage-webui.git
synced 2025-10-14 14:59:32 +07:00
Merge pull request #30 from Retr0-01/fix-layout-confirmations
fix: improve layout confirmation messages
This commit is contained in:
commit
ee420fbf29
@ -108,7 +108,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
|
|
||||||
const onRevert = () => {
|
const onRevert = () => {
|
||||||
if (
|
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
|
data?.version != null
|
||||||
) {
|
) {
|
||||||
revertChanges.mutate(data?.version + 1);
|
revertChanges.mutate(data?.version + 1);
|
||||||
@ -117,7 +117,7 @@ const NodesList = ({ nodes }: NodeListProps) => {
|
|||||||
|
|
||||||
const onApply = () => {
|
const onApply = () => {
|
||||||
if (
|
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
|
data?.version != null
|
||||||
) {
|
) {
|
||||||
applyChanges.mutate(data?.version + 1);
|
applyChanges.mutate(data?.version + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user