From 5589b08abf161475ea26ed75889661d3cb24e9d6 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Sat, 25 Apr 2020 17:42:54 +0800 Subject: [PATCH] Add rename rss item close #28 --- src/Api.ts | 10 ++++++++ src/components/dialogs/RssDialog.vue | 38 ++++++++++++++++++++++++++++ src/locale/en.ts | 1 + src/locale/zh-CN.ts | 1 + 4 files changed, 50 insertions(+) diff --git a/src/Api.ts b/src/Api.ts index 2dc2edf..a7dba49 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -230,6 +230,16 @@ class Api { return this.axios.post('/rss/refreshItem', data).then(Api.handleResponse); } + public moveRssFeed(path: string, newPath: string) { + const params: any = { + itemPath: path, + destPath: newPath, + } + + const data = new URLSearchParams(params) + return this.axios.post('/rss/moveItem', data).then(Api.handleResponse); + } + public getRssRules(): Promise<{[key: string]: RssRule}> { return this.axios.get('/rss/rules').then(Api.handleResponse); } diff --git a/src/components/dialogs/RssDialog.vue b/src/components/dialogs/RssDialog.vue index 7a1ec07..a81af40 100644 --- a/src/components/dialogs/RssDialog.vue +++ b/src/components/dialogs/RssDialog.vue @@ -34,6 +34,14 @@ > mdi-delete + + mdi-file-move +