Fix rss feed modal not showing full URL once open #1652

This commit is contained in:
advplyr 2025-08-08 17:39:27 -05:00
parent c6a7c6fec2
commit bd8668f0bf

View file

@ -12,9 +12,9 @@
<div class="w-full relative">
<h1 class="text-lg mb-4">{{ $strings.HeaderRSSFeedIsOpen }}</h1>
<ui-text-input v-model="currentFeed.feedUrl" class="text-sm" readonly />
<ui-text-input v-model="fullFeedUrl" class="text-sm" readonly />
<span class="material-symbols absolute right-2 bottom-2 p-0.5 text-base" :class="linkCopied ? 'text-success' : 'text-fg-muted'" @click="copyToClipboard(currentFeed.feedUrl)">{{ linkCopied ? 'check' : 'content_copy' }}</span>
<span class="material-symbols absolute right-2 bottom-2 p-0.5 text-base" :class="linkCopied ? 'text-success' : 'text-fg-muted'" @click="copyToClipboard(fullFeedUrl)">{{ linkCopied ? 'check' : 'content_copy' }}</span>
</div>
<div v-if="currentFeed.meta" class="mt-5">
@ -119,6 +119,10 @@ export default {
demoFeedUrl() {
return `${this.serverAddress}/feed/${this.newFeedSlug}`
},
fullFeedUrl() {
if (!this.currentFeed) return ''
return `${this.serverAddress}${this.currentFeed.feedUrl}`
},
isHttp() {
return !!this.serverAddress?.startsWith('http://')
}