• R/O
  • HTTP
  • SSH
  • HTTPS

newslash: Commit

newslash


Commit MetaInfo

Revisiónc031778efe032d9335ccec2fd6ca13eaf028a6ae (tree)
Tiempo2019-06-19 18:11:58
Autorhylom <hylom@user...>
Commiterhylom

Log Message

feeds-editor: now active/inactive flag is configurable

Cambiar Resumen

Diferencia incremental

--- a/src/newslash_web/public/js/feeds-editor.js
+++ b/src/newslash_web/public/js/feeds-editor.js
@@ -22,6 +22,7 @@ feedsEditor.run = function run (params) {
2222 title: this.feed.title,
2323 name: this.feed.name,
2424 description: this.feed.description,
25+ status: this.feed.status,
2526 feed_id: this.feed.feed_id,
2627 };
2728 this.$http.post("/api/v1/admin/feed", postData).then(
@@ -67,6 +68,7 @@ feedsEditor.run = function run (params) {
6768 this.feed.url = response.body.item.url;
6869 this.feed.title = response.body.item.title;
6970 this.feed.description = response.body.item.description;
71+ this.feed.status = response.body.item.status;
7072 },
7173 (response) => { // fail
7274 this.message = "error: " + response.body.message;
--- a/src/newslash_web/templates/admin/feed/index.html.tt2
+++ b/src/newslash_web/templates/admin/feed/index.html.tt2
@@ -67,6 +67,13 @@
6767 <label>url:
6868 <input id="feed-url" type="text" name="url" v-model="feed.url" placeholder="url" />
6969 </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>
7077 </div>
7178
7279 <div class="dialog-footer">
Show on old repository browser