newslash
Revisión | c031778efe032d9335ccec2fd6ca13eaf028a6ae (tree) |
---|---|
Tiempo | 2019-06-19 18:11:58 |
Autor | ![]() |
Commiter | hylom |
feeds-editor: now active/inactive flag is configurable
@@ -22,6 +22,7 @@ feedsEditor.run = function run (params) { | ||
22 | 22 | title: this.feed.title, |
23 | 23 | name: this.feed.name, |
24 | 24 | description: this.feed.description, |
25 | + status: this.feed.status, | |
25 | 26 | feed_id: this.feed.feed_id, |
26 | 27 | }; |
27 | 28 | this.$http.post("/api/v1/admin/feed", postData).then( |
@@ -67,6 +68,7 @@ feedsEditor.run = function run (params) { | ||
67 | 68 | this.feed.url = response.body.item.url; |
68 | 69 | this.feed.title = response.body.item.title; |
69 | 70 | this.feed.description = response.body.item.description; |
71 | + this.feed.status = response.body.item.status; | |
70 | 72 | }, |
71 | 73 | (response) => { // fail |
72 | 74 | this.message = "error: " + response.body.message; |
@@ -67,6 +67,13 @@ | ||
67 | 67 | <label>url: |
68 | 68 | <input id="feed-url" type="text" name="url" v-model="feed.url" placeholder="url" /> |
69 | 69 | </label> |
70 | + | |
71 | + <label>status: | |
72 | + <select id="feed-status" v-model="feed.status"> | |
73 | + <option value="active">active</option> | |
74 | + <option value="inactive">inactive</option> | |
75 | + </select> | |
76 | + </label> | |
70 | 77 | </div> |
71 | 78 | |
72 | 79 | <div class="dialog-footer"> |