mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Fixed syncing tiers status between Ember and AdminX (#18353)
refs https://github.com/TryGhost/Product/issues/3832 --- <!-- Leave the line below if you'd like GitHub Copilot to generate a summary from your commit --> <!-- copilot:summary --> ### <samp>🤖 Generated by Copilot at 0ddea75</samp> Added `membersUtils` service to `AdminXSettings` component to support tiers feature. Reloaded service after saving settings with `TiersResponseType`.
This commit is contained in:
parent
1f2dbc95f9
commit
ea64107f9d
1 changed files with 6 additions and 0 deletions
|
@ -278,6 +278,7 @@ export default class AdminXSettings extends Component {
|
|||
@service store;
|
||||
@service settings;
|
||||
@service router;
|
||||
@service membersUtils;
|
||||
|
||||
@inject config;
|
||||
|
||||
|
@ -323,6 +324,11 @@ export default class AdminXSettings extends Component {
|
|||
// Blog title is based on settings, but the one stored in config is used instead in various places
|
||||
this.config.blogTitle = response.settings.find(setting => setting.key === 'title').value;
|
||||
}
|
||||
|
||||
if (dataType === 'TiersResponseType') {
|
||||
// membersUtils has local state which needs to be updated
|
||||
this.membersUtils.reload();
|
||||
}
|
||||
};
|
||||
|
||||
onInvalidate = (dataType) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue