OSDN Git Service

feeds-editor: now active/inactive flag is configurable
[newslash/newslash.git] / src / newslash_web / public / js / feeds-editor.js
index b11ebbd..b10f8b1 100644 (file)
@@ -22,6 +22,7 @@ feedsEditor.run = function run (params) {
           title: this.feed.title,
           name: this.feed.name,
           description: this.feed.description,
+         status: this.feed.status,
           feed_id: this.feed.feed_id,
         };
         this.$http.post("/api/v1/admin/feed", postData).then(
@@ -67,6 +68,7 @@ feedsEditor.run = function run (params) {
             this.feed.url = response.body.item.url;
             this.feed.title = response.body.item.title;
             this.feed.description = response.body.item.description;
+           this.feed.status = response.body.item.status;
           },
           (response) => { // fail
             this.message = "error: " + response.body.message;