Ghost/ghost/admin/app/models/custom-theme-setting.js
Michael Barrett 46897bdb3a
Ensure hidden settings return falsy when used with the @custom helper (#17920)
no refs

When a theme setting is hidden, it should return a falsy value when used
2023-09-13 08:38:31 +01:00

14 lines
345 B
JavaScript

import Model, {attr} from '@ember-data/model';
export default Model.extend({
key: attr('string'),
type: attr('string'),
description: attr('string'),
options: attr(),
default: attr('string'),
value: attr(),
group: attr('string'),
visibility: attr('string'),
visible: attr('boolean', {defaultValue: true})
});