Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Update button positions (#5157)

Artur Pataa6a103a9a0b9
diff --git a/assets/js/dashboard/segments/segment-modals.tsx b/assets/js/dashboard/segments/segment-modals.tsx
index bb45ee3076..822bf8ee6e 100644
--- a/assets/js/dashboard/segments/segment-modals.tsx
+++ b/assets/js/dashboard/segments/segment-modals.tsx
@@ -113,9 +113,6 @@ export const CreateSegmentModal = ({
userCanSelectSiteSegment={userCanSelectSiteSegment}
/>
<ButtonsRow>
- <button className={secondaryButtonClassName} onClick={onClose}>
- Cancel
- </button>
<button
className={primaryNeutralButtonClassName}
onClick={
@@ -132,6 +129,9 @@ export const CreateSegmentModal = ({
>
Save
</button>
+ <button className={secondaryButtonClassName} onClick={onClose}>
+ Cancel
+ </button>
</ButtonsRow>
{error !== null && (
<ErrorPanel
@@ -171,9 +171,6 @@ export const DeleteSegmentModal = ({
)}
<ButtonsRow>
- <button className={secondaryButtonClassName} onClick={onClose}>
- Cancel
- </button>
<button
className={primaryNegativeButtonClassName}
disabled={status === 'pending'}
@@ -187,6 +184,9 @@ export const DeleteSegmentModal = ({
>
Delete
</button>
+ <button className={secondaryButtonClassName} onClick={onClose}>
+ Cancel
+ </button>
</ButtonsRow>
{error !== null && (
<ErrorPanel
@@ -353,9 +353,6 @@ export const UpdateSegmentModal = ({
userCanSelectSiteSegment={userCanSelectSiteSegment}
/>
<ButtonsRow>
- <button className={secondaryButtonClassName} onClick={onClose}>
- Cancel
- </button>
<button
className={primaryNeutralButtonClassName}
disabled={status === 'pending'}
@@ -373,6 +370,9 @@ export const UpdateSegmentModal = ({
>
Save
</button>
+ <button className={secondaryButtonClassName} onClick={onClose}>
+ Cancel
+ </button>
</ButtonsRow>
{error !== null && (
<ErrorPanel