diff --git a/src/components/ImportPage.vue b/src/components/ImportPage.vue index 5f274cd9..4d8791d8 100644 --- a/src/components/ImportPage.vue +++ b/src/components/ImportPage.vue @@ -149,8 +149,17 @@ export default { }); } else { this.importSubscriptionsLocally(this.subscriptions); + window.location = "/feed"; } }, + importSubscriptionsLocally(newChannels) { + const subscriptions = this.override + ? [...new Set(newChannels)] + : [...new Set(this.getLocalSubscriptions().concat(newChannels))]; + // Sort for better cache hits + subscriptions.sort(); + localStorage.setItem("localSubscriptions", JSON.stringify(subscriptions)); + }, }, }; diff --git a/src/components/SubscriptionsPage.vue b/src/components/SubscriptionsPage.vue index fba5ba00..4d7affaf 100644 --- a/src/components/SubscriptionsPage.vue +++ b/src/components/SubscriptionsPage.vue @@ -1,7 +1,7 @@