2020-02-16 18:30:00 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
2020-08-31 21:35:22 +00:00
|
|
|
<ft-loader
|
|
|
|
v-if="isLoading"
|
|
|
|
:fullscreen="true"
|
|
|
|
/>
|
|
|
|
<ft-card
|
|
|
|
v-else
|
|
|
|
class="card"
|
|
|
|
>
|
2020-08-07 00:20:42 +00:00
|
|
|
<h3>{{ $t("Subscriptions.Subscriptions") }}</h3>
|
2020-08-31 21:35:22 +00:00
|
|
|
<ft-flex-box
|
2020-09-02 03:20:21 +00:00
|
|
|
v-if="activeVideoList.length === 0"
|
2020-08-31 21:35:22 +00:00
|
|
|
>
|
2020-05-28 02:48:41 +00:00
|
|
|
<p class="message">
|
2020-09-02 03:20:21 +00:00
|
|
|
{{ $t("Subscriptions['Your Subscription list is currently empty. Start adding subscriptions to see them here.']") }}
|
2020-05-28 02:48:41 +00:00
|
|
|
</p>
|
|
|
|
</ft-flex-box>
|
2020-08-31 21:35:22 +00:00
|
|
|
<ft-element-list
|
|
|
|
v-else
|
2020-09-02 03:20:21 +00:00
|
|
|
:data="activeVideoList"
|
2020-08-31 21:35:22 +00:00
|
|
|
/>
|
|
|
|
<ft-flex-box
|
|
|
|
>
|
|
|
|
<ft-button
|
2020-09-02 03:20:21 +00:00
|
|
|
v-if="videoList.length > dataLimit"
|
2020-08-31 21:35:22 +00:00
|
|
|
label="Load More"
|
|
|
|
background-color="var(--primary-color)"
|
|
|
|
text-color="var(--text-with-main-color)"
|
|
|
|
@click="increaseLimit"
|
|
|
|
/>
|
|
|
|
</ft-flex-box>
|
2020-02-16 18:30:00 +00:00
|
|
|
</ft-card>
|
2020-09-02 03:20:21 +00:00
|
|
|
<ft-icon-button
|
|
|
|
v-if="!isLoading"
|
|
|
|
icon="sync"
|
|
|
|
class="floatingTopButton"
|
|
|
|
:title="$t('Subscriptions.Refresh Subscriptions')"
|
|
|
|
:size="12"
|
|
|
|
theme="primary"
|
|
|
|
@click="getSubscriptions"
|
|
|
|
/>
|
2020-02-16 18:30:00 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./Subscriptions.js" />
|
|
|
|
<style scoped src="./Subscriptions.css" />
|