From e6fed9af5c298bf463a6d8513fd2407acb314aa8 Mon Sep 17 00:00:00 2001 From: turt2live Date: Sun, 28 May 2017 22:57:40 -0600 Subject: [PATCH] Clear feed url after adding successfully --- web/app/configs/rss/rss-config.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/configs/rss/rss-config.component.ts b/web/app/configs/rss/rss-config.component.ts index a24e837..36d4db8 100644 --- a/web/app/configs/rss/rss-config.component.ts +++ b/web/app/configs/rss/rss-config.component.ts @@ -46,12 +46,12 @@ export class RssConfigComponent implements ModalComponent { let feedCopy = JSON.parse(JSON.stringify(this.integration.feeds)); const idx = feedCopy.indexOf(feedUrl); feedCopy.splice(idx, 1); - this.updateFeeds(feedCopy); + this.updateFeeds(feedCopy).then(() => this.feedUrl = ""); } private updateFeeds(newFeeds) { this.isUpdating = true; - this.api.updateIntegrationState(this.roomId, this.integration.type, this.integration.integrationType, this.scalarToken, { + return this.api.updateIntegrationState(this.roomId, this.integration.type, this.integration.integrationType, this.scalarToken, { feeds: newFeeds }).then(response => { this.integration.feeds = response.feeds;