mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-16 04:08:34 +03:00
b9f9c576ed
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;
|