mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 18:01:36 +03:00
f4de1199d1
Closes #3036 Refs #3012 -Enable validation for settings/general -Turn on functional tests for the validations -Move notification closeAll calls so that notifications are cleared on attempted saves instead of just on successful saves
20 lines
540 B
JavaScript
20 lines
540 B
JavaScript
import ValidationEngine from 'ghost/mixins/validation-engine';
|
|
|
|
var Setting = DS.Model.extend(ValidationEngine, {
|
|
validationType: 'setting',
|
|
|
|
title: DS.attr('string'),
|
|
description: DS.attr('string'),
|
|
email: DS.attr('string'),
|
|
logo: DS.attr('string'),
|
|
cover: DS.attr('string'),
|
|
defaultLang: DS.attr('string'),
|
|
postsPerPage: DS.attr('number'),
|
|
forceI18n: DS.attr('boolean'),
|
|
permalinks: DS.attr('string'),
|
|
activeTheme: DS.attr('string'),
|
|
availableThemes: DS.attr()
|
|
});
|
|
|
|
export default Setting;
|