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:
parent
2526bd627e
commit
47ed1c0b3e
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ const Access: React.FC = () => {
|
||||||
const {
|
const {
|
||||||
currentState,
|
currentState,
|
||||||
handleSave,
|
handleSave,
|
||||||
|
handleCancel,
|
||||||
updateSetting,
|
updateSetting,
|
||||||
getSettingValues,
|
getSettingValues,
|
||||||
handleStateChange
|
handleStateChange
|
||||||
|
@ -103,6 +104,7 @@ const Access: React.FC = () => {
|
||||||
description='Set up default access options for subscription and posts'
|
description='Set up default access options for subscription and posts'
|
||||||
state={currentState}
|
state={currentState}
|
||||||
title='Access'
|
title='Access'
|
||||||
|
onCancel={handleCancel}
|
||||||
onSave={handleSave}
|
onSave={handleSave}
|
||||||
onStateChange={handleStateChange}
|
onStateChange={handleStateChange}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Add table
Reference in a new issue