1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Updated settings service with new types list

refs https://github.com/TryGhost/Ghost/issues/10318, https://github.com/TryGhost/Ghost/pull/11952

- precursor for moving from `?type` to `?group`
- matches the new settings groups list
This commit is contained in:
Kevin Ansfield 2020-06-23 20:47:26 +01:00
parent ba7106d06b
commit c5c50139ef
2 changed files with 20 additions and 20 deletions

View file

@ -27,7 +27,7 @@ export default Service.extend(_ProxyMixin, ValidationEngine, {
_loadSettings() {
if (!this._loadingPromise) {
this._loadingPromise = this.store
.queryRecord('setting', {type: 'blog,theme,private,members,bulk_email,portal'})
.queryRecord('setting', {type: 'site,theme,private,members,portal,email,amp,labs,slack,unsplash,views'})
.then((settings) => {
this._loadingPromise = null;
return settings;

View file

@ -5,7 +5,7 @@ export default [
created_at: '2015-09-11T09:44:30.805Z',
created_by: 1,
key: 'title',
type: 'blog',
type: 'site',
updated_at: '2015-10-04T16:26:05.195Z',
updated_by: 1,
value: 'Test Blog'
@ -15,7 +15,7 @@ export default [
created_at: '2015-09-11T09:44:30.806Z',
created_by: 1,
key: 'description',
type: 'blog',
type: 'site',
updated_at: '2015-10-04T16:26:05.198Z',
updated_by: 1,
value: 'Thoughts, stories and ideas.'
@ -24,7 +24,7 @@ export default [
id: 3,
key: 'logo',
value: '/content/images/2013/Nov/logo.png',
type: 'blog',
type: 'site',
created_at: '2013-11-25T14:48:11.000Z',
created_by: 1,
updated_at: '2015-10-27T17:39:58.273Z',
@ -34,7 +34,7 @@ export default [
id: 4,
key: 'cover_image',
value: '/content/images/2014/Feb/cover.jpg',
type: 'blog',
type: 'site',
created_at: '2013-11-25T14:48:11.000Z',
created_by: 1,
updated_at: '2015-10-27T17:39:58.276Z',
@ -42,9 +42,9 @@ export default [
},
{
id: 5,
key: 'default_lang',
value: 'en_US',
type: 'blog',
key: 'default_locale',
value: 'en',
type: 'site',
created_at: '2013-11-25T14:48:11.000Z',
created_by: 1,
updated_at: '2015-10-27T17:39:58.278Z',
@ -55,7 +55,7 @@ export default [
created_at: '2015-09-11T09:44:30.809Z',
created_by: 1,
key: 'codeinjection_head',
type: 'blog',
type: 'site',
updated_at: '2015-09-23T13:32:49.858Z',
updated_by: 1,
value: ''
@ -65,7 +65,7 @@ export default [
created_at: '2015-09-11T09:44:30.809Z',
created_by: 1,
key: 'codeinjection_foot',
type: 'blog',
type: 'site',
updated_at: '2015-09-23T13:32:49.858Z',
updated_by: 1,
value: ''
@ -74,7 +74,7 @@ export default [
id: 12,
key: 'labs',
value: '{}',
type: 'blog',
type: 'labs',
created_at: '2015-01-12T18:29:01.000Z',
created_by: 1,
updated_at: '2015-10-27T17:39:58.288Z',
@ -85,7 +85,7 @@ export default [
created_at: '2015-09-11T09:44:30.810Z',
created_by: 1,
key: 'navigation',
type: 'blog',
type: 'site',
updated_at: '2015-09-23T13:32:49.868Z',
updated_by: 1,
value: JSON.stringify([
@ -118,7 +118,7 @@ export default [
created_at: '2016-05-05T15:04:03.115Z',
created_by: 1,
key: 'slack',
type: 'blog',
type: 'slack',
updated_at: '2016-05-05T18:33:09.168Z',
updated_by: 1,
value: '[{"url":"", "username":"Ghost"}]'
@ -128,7 +128,7 @@ export default [
created_at: '2016-05-05T15:40:12.133Z',
created_by: 1,
key: 'facebook',
type: 'blog',
type: 'site',
updated_at: '2016-05-08T15:20:25.953Z',
updated_by: 1,
value: 'test'
@ -138,7 +138,7 @@ export default [
created_at: '2016-05-05T15:40:12.134Z',
created_by: 1,
key: 'twitter',
type: 'blog',
type: 'site',
updated_at: '2016-05-08T15:20:25.954Z',
updated_by: 1,
value: '@test'
@ -148,7 +148,7 @@ export default [
created_at: '2015-09-11T09:44:30.810Z',
created_by: 1,
key: 'active_timezone',
type: 'blog',
type: 'site',
updated_at: '2015-09-23T13:32:49.868Z',
updated_by: 1,
value: 'Etc/UTC'
@ -158,7 +158,7 @@ export default [
created_at: '2017-01-09T08:40:59.000Z',
created_by: 1,
key: 'amp',
type: 'blog',
type: 'amp',
updated_at: '2017-01-09T08:49:42.991Z',
updated_by: 1,
value: 'true'
@ -167,7 +167,7 @@ export default [
id: 22,
key: 'icon',
value: '/content/images/2014/Feb/favicon.ico',
type: 'blog',
type: 'site',
created_at: '2013-11-25T14:48:11.000Z',
created_by: 1,
updated_at: '2015-10-27T17:39:58.276Z',
@ -185,7 +185,7 @@ export default [
},
{
id: 24,
type: 'bulk_email',
type: 'email',
key: 'bulk_email_settings',
value: '{"provider":"mailgun","apiKey":"","domain":"","baseUrl":""}',
created_at: '2019-10-09T09:49:00.000Z',
@ -196,7 +196,7 @@ export default [
{
id: 25,
key: 'secondary_navigation',
type: 'blog',
type: 'site',
created_at: '2019-11-20T09:44:30.810Z',
created_by: 1,
updated_at: '2019-11-20T13:32:49.868Z',