mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
667888aeb3
Closes #2083 * Added hbs template for apps listing * Added settings to read the activeApps * Added viewcontrol to activate / deactivate apps * Added API handler to store activeApps (by `name` in the `package.json` file) * On button click it turns the button into "Working" and changes class to `button` (grey one) * On success, rerenders the pane, adds success notification about apps being saved * On error, rerenders the pane, adds error notification with error message Missing: * tests: couldn't figure out how to add mock apps with mock package.json data * actually registering, etc, re #2140 * icon from the sidebar
11 lines
283 B
JavaScript
11 lines
283 B
JavaScript
/*global window, document, Ghost, $, _, Backbone */
|
|
(function () {
|
|
'use strict';
|
|
//id:0 is used to issue PUT requests
|
|
Ghost.Models.Settings = Ghost.ProgressModel.extend({
|
|
url: Ghost.paths.apiRoot + '/settings/?type=blog,theme,app',
|
|
id: '0'
|
|
});
|
|
|
|
}());
|