Add embed button
This commit is contained in:
parent
ed8d4f0c3f
commit
fa038032e6
|
@ -126,7 +126,7 @@ const checkAndSwitch = async (url: string) => {
|
||||||
type="submit"
|
type="submit"
|
||||||
:class="['ui', 'icon', {loading: isLoading}, 'button']"
|
:class="['ui', 'icon', {loading: isLoading}, 'button']"
|
||||||
>
|
>
|
||||||
{{ $t('components.SetInstanceModal.button.submit') }}
|
{{ $t('global.button.submit') }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -94,7 +94,7 @@ const remove = () => emit('remove')
|
||||||
@click="showEmbedModal = !showEmbedModal"
|
@click="showEmbedModal = !showEmbedModal"
|
||||||
>
|
>
|
||||||
<i class="code icon" />
|
<i class="code icon" />
|
||||||
{{ $t('components.library.AlbumDropdown.button.embed') }}
|
{{ $t('global.button.embed') }}
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
v-if="isAlbum && musicbrainzUrl"
|
v-if="isAlbum && musicbrainzUrl"
|
||||||
|
|
|
@ -196,7 +196,7 @@ watch(() => props.id, fetchData, { immediate: true })
|
||||||
@click.prevent="showEmbedModal = !showEmbedModal"
|
@click.prevent="showEmbedModal = !showEmbedModal"
|
||||||
>
|
>
|
||||||
<i class="code icon" />
|
<i class="code icon" />
|
||||||
{{ $t('components.library.ArtistBase.button.embed') }}
|
{{ $t('global.button.embed') }}
|
||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
:href="wikipediaUrl"
|
:href="wikipediaUrl"
|
||||||
|
|
|
@ -227,7 +227,7 @@ const remove = async () => {
|
||||||
@click="showEmbedModal = !showEmbedModal"
|
@click="showEmbedModal = !showEmbedModal"
|
||||||
>
|
>
|
||||||
<i class="code icon" />
|
<i class="code icon" />
|
||||||
{{ $t('components.library.TrackBase.button.embed') }}
|
{{ $t('global.button.embed') }}
|
||||||
</div>
|
</div>
|
||||||
<a
|
<a
|
||||||
:href="wikipediaUrl"
|
:href="wikipediaUrl"
|
||||||
|
|
|
@ -4510,7 +4510,9 @@
|
||||||
"edit": "Edit",
|
"edit": "Edit",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"search": "Search",
|
"search": "Search",
|
||||||
"clear": "Clear"
|
"clear": "Clear",
|
||||||
|
"embed": "Embed",
|
||||||
|
"submit": "Submit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -256,7 +256,7 @@ const updateSubscriptionCount = (delta: number) => {
|
||||||
@click.prevent="showEmbedModal = !showEmbedModal"
|
@click.prevent="showEmbedModal = !showEmbedModal"
|
||||||
>
|
>
|
||||||
<i class="code icon" />
|
<i class="code icon" />
|
||||||
{{ $t('views.channels.DetailBase.button.embed') }}
|
{{ $t('global.button.embed') }}
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
v-if="object.actor && object.actor.domain != $store.getters['instance/domain']"
|
v-if="object.actor && object.actor.domain != $store.getters['instance/domain']"
|
||||||
|
|
|
@ -132,7 +132,7 @@ const deletePlaylist = async () => {
|
||||||
@click="showEmbedModal = !showEmbedModal"
|
@click="showEmbedModal = !showEmbedModal"
|
||||||
>
|
>
|
||||||
<i class="code icon" />
|
<i class="code icon" />
|
||||||
{{ $t('views.playlists.Detail.button.embed') }}
|
{{ $t('global.button.embed') }}
|
||||||
</button>
|
</button>
|
||||||
<dangerous-button
|
<dangerous-button
|
||||||
v-if="$store.state.auth.profile && playlist.user.id === $store.state.auth.profile.id"
|
v-if="$store.state.auth.profile && playlist.user.id === $store.state.auth.profile.id"
|
||||||
|
|
Loading…
Reference in New Issue