50 lines
1.3 KiB
Vue
50 lines
1.3 KiB
Vue
|
<template>
|
||
|
<div>
|
||
|
<ft-card class="card">
|
||
|
<h2>
|
||
|
{{ $t("Profile.Subscription List") }}
|
||
|
</h2>
|
||
|
<p>
|
||
|
{{ selectedText }}
|
||
|
</p>
|
||
|
<ft-flex-box>
|
||
|
<ft-channel-bubble
|
||
|
v-for="(channel, index) in subscriptions"
|
||
|
:key="index"
|
||
|
:ref="`channel-${index}`"
|
||
|
:channel-name="channel.name"
|
||
|
:channel-thumbnail="channel.thumbnail"
|
||
|
:show-selected="true"
|
||
|
@click="handleChannelClick(index)"
|
||
|
/>
|
||
|
</ft-flex-box>
|
||
|
<ft-flex-box>
|
||
|
<ft-button
|
||
|
:label="$t('Profile.Select All')"
|
||
|
@click="selectAll"
|
||
|
/>
|
||
|
<ft-button
|
||
|
:label="$t('Profile.Select None')"
|
||
|
@click="selectNone"
|
||
|
/>
|
||
|
<ft-button
|
||
|
:label="$t('Profile.Delete Selected')"
|
||
|
text-color="var(--text-with-main-color)"
|
||
|
background-color="var(--primary-color)"
|
||
|
@click="displayDeletePrompt"
|
||
|
/>
|
||
|
</ft-flex-box>
|
||
|
</ft-card>
|
||
|
<ft-prompt
|
||
|
v-if="showDeletePrompt"
|
||
|
:label="deletePromptMessage"
|
||
|
:option-names="deletePromptNames"
|
||
|
:option-values="deletePromptValues"
|
||
|
@click="handleDeletePromptClick"
|
||
|
/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script src="./ft-profile-channel-list.js" />
|
||
|
<style scoped src="./ft-profile-channel-list.css" />
|