forked from Furumi/furumi-web
Add the share toggle and privacy dialog to the podcast page
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
588ea4e99e
commit
74ad88d06e
6 files changed
+318
-2
No files matched your search
@@ -48,6 +48,29 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Podcast: confirm publishing a feed URL that looks private -->
|
||||
<template x-if="$store.podcasts.shareDialog">
|
||||
<div class="modal-overlay" @click.self="$store.podcasts.cancelShare()" @keydown.escape.window="$store.podcasts.cancelShare()">
|
||||
<div class="modal-box podcast-share-dialog" role="dialog" aria-modal="true" aria-labelledby="podcast-share-dialog-title">
|
||||
<h3 id="podcast-share-dialog-title">{{ t.player_podcast_share_dialog_title }}</h3>
|
||||
<p class="podcast-share-dialog-title" x-text="$store.podcasts.shareDialog.title"></p>
|
||||
<p>{{ t.player_podcast_share_dialog_text }}</p>
|
||||
<ul class="podcast-share-warnings">
|
||||
<template x-for="(warning, index) in $store.podcasts.shareDialog.warnings" :key="index">
|
||||
<li x-text="$store.podcasts.warningText(warning)"></li>
|
||||
</template>
|
||||
</ul>
|
||||
<div class="podcast-share-url" x-text="$store.podcasts.shareDialog.feed_url"></div>
|
||||
<div class="podcast-share-url" x-show="$store.podcasts.shareDialog.id_feed_url" x-text="$store.podcasts.shareDialog.id_feed_url"></div>
|
||||
<p class="podcast-share-hint">{{ t.player_podcast_share_dialog_hint }}</p>
|
||||
<div class="modal-footer">
|
||||
<button class="modal-btn modal-btn-ghost" x-init="$nextTick(() => $el.focus())" @click="$store.podcasts.cancelShare()">{{ t.player_cancel }}</button>
|
||||
<button class="modal-btn modal-btn-danger" @click="$store.podcasts.confirmShare()">{{ t.player_podcast_share_dialog_confirm }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Create / Rename Playlist Modal -->
|
||||
<template x-if="$store.playlists.modal">
|
||||
<div class="modal-overlay" @click.self="$store.playlists.modal = null">
|
||||
|
||||
Reference in new issue
Block a user