diff --git a/public/img/subscriptions-no-channels.png b/public/img/subscriptions-no-channels.png new file mode 100644 index 00000000..318d1350 Binary files /dev/null and b/public/img/subscriptions-no-channels.png differ diff --git a/src/components/FeedPage.vue b/src/components/FeedPage.vue index 7eab3008..a786b129 100644 --- a/src/components/FeedPage.vue +++ b/src/components/FeedPage.vue @@ -77,10 +77,10 @@ style="text-align: center; width: 100%; margin-top: 10%;" > -

{{ $t("actions.subscribe_to_channels_title") }}

+

{{ $t("actions.no_videos_in_feed_title") }}

- {{ $t("actions.subscribe_to_channels_1") }}
- {{ $t("actions.subscribe_to_channels_2") }} + {{ $t("actions.no_videos_in_feed_1") }}
+ {{ $t("actions.no_videos_in_feed_2") }}

diff --git a/src/components/SubscriptionsPage.vue b/src/components/SubscriptionsPage.vue index d486de08..5b4e8736 100644 --- a/src/components/SubscriptionsPage.vue +++ b/src/components/SubscriptionsPage.vue @@ -1,25 +1,70 @@ @@ -51,6 +109,7 @@ export default { data() { return { subscriptions: [], + loading: true, }; }, mounted() { @@ -60,6 +119,7 @@ export default { Authorization: this.getAuthToken(), }, }).then(json => { + this.loading = false; this.subscriptions = json; this.subscriptions.forEach(subscription => (subscription.subscribed = true)); }); diff --git a/src/locales/en.json b/src/locales/en.json index 11ab9e0a..4dd5fa70 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -66,9 +66,12 @@ "search": "Search", "filter": "Filter", "loading": "Loading...", - "subscribe_to_channels_1": "Subscribe to channels to", - "subscribe_to_channels_2": "see videos in this section.", - "subscribe_to_channels_title": "No videos in My feed yet" + "no_videos_in_feed_1": "Subscribe to channels to", + "no_videos_in_feed_2": "see videos in this section.", + "no_videos_in_feed_title": "No videos in My feed yet", + "no_subscriptions_in_subscriptions_1": "Subscribe to channels to", + "no_subscriptions_in_subscriptions_2": "to see your subscriptions here.", + "no_subscriptions_in_subscriptions_title": "No subscriptions yet" }, "comment": { "pinned_by": "Pinned by"