0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-04 02:01:58 -05:00

Fixed cancel button for access settings

refs https://github.com/TryGhost/Team/issues/3151

- access settings was missing cancel handling that resets settings when user exits the edit mode without save
This commit is contained in:
Rishabh 2023-05-23 12:20:22 +05:30
parent 2526bd627e
commit 47ed1c0b3e

View file

@ -31,6 +31,7 @@ const Access: React.FC = () => {
const {
currentState,
handleSave,
handleCancel,
updateSetting,
getSettingValues,
handleStateChange
@ -103,6 +104,7 @@ const Access: React.FC = () => {
description='Set up default access options for subscription and posts'
state={currentState}
title='Access'
onCancel={handleCancel}
onSave={handleSave}
onStateChange={handleStateChange}
>