0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

Added custom theme type to emberdatatypemapping (#18348)

no issue

- added a missing emberDataTypeMapping needed for theme uploads to be
handled correctly

---

<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
<!--
copilot:summary
-->
### <samp>🤖 Generated by Copilot at 40647c6</samp>

Added support for custom theme settings API in Ember Data. Updated
`settings.js` to map the new `CustomThemeSettingsResponseType` to the
store.
This commit is contained in:
Ronald Langeveld 2023-09-26 15:55:45 +07:00 committed by GitHub
parent 6d0da713f0
commit ac7abb9edd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,7 +265,9 @@ const emberDataTypeMapping = {
SettingsResponseType: {type: 'setting', singleton: true},
ThemesResponseType: {type: 'theme'},
TiersResponseType: {type: 'tier'},
UsersResponseType: {type: 'user'}
UsersResponseType: {type: 'user'},
CustomThemeSettingsResponseType: {type: 'custom-theme-setting'}
};
export default class AdminXSettings extends Component {