Verified Commit f361c7bb authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Added button in admin to refresh artist/album/track from remote

parent 583cd1f2
Pipeline #3946 passed with stages
in 2 minutes and 47 seconds
......@@ -46,6 +46,10 @@
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open on MusicBrainz</translate>&nbsp;
</a>
<fetch-button @refresh="fetchData" v-if="!object.is_local" class="basic item" :url="`albums/${object.id}/fetches/`">
<i class="refresh icon"></i>&nbsp;
<translate translate-context="Content/Moderation/Button/Verb">Refresh from remote server</translate>&nbsp;
</fetch-button>
<a class="basic item" :href="object.url || object.fid" target="_blank" rel="noopener noreferrer">
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open remote profile</translate>&nbsp;
......@@ -264,10 +268,14 @@
<script>
import axios from "axios"
import logger from "@/logging"
import FetchButton from "@/components/federation/FetchButton"
export default {
props: ["id"],
components: {
FetchButton
},
data() {
return {
isLoading: true,
......
......@@ -45,6 +45,10 @@
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open on MusicBrainz</translate>&nbsp;
</a>
<fetch-button @refresh="fetchData" v-if="!object.is_local" class="basic item" :url="`artists/${object.id}/fetches/`">
<i class="refresh icon"></i>&nbsp;
<translate translate-context="Content/Moderation/Button/Verb">Refresh from remote server</translate>&nbsp;
</fetch-button>
<a class="basic item" :href="object.url || object.fid" target="_blank" rel="noopener noreferrer">
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open remote profile</translate>&nbsp;
......@@ -264,9 +268,13 @@
import axios from "axios"
import logger from "@/logging"
import FetchButton from "@/components/federation/FetchButton"
export default {
props: ["id"],
components: {
FetchButton
},
data() {
return {
isLoading: true,
......
......@@ -45,6 +45,10 @@
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open on MusicBrainz</translate>&nbsp;
</a>
<fetch-button @refresh="fetchData" v-if="!object.is_local" class="basic item" :url="`tracks/${object.id}/fetches/`">
<i class="refresh icon"></i>&nbsp;
<translate translate-context="Content/Moderation/Button/Verb">Refresh from remote server</translate>&nbsp;
</fetch-button>
<a class="basic item" :href="object.url || object.fid" target="_blank" rel="noopener noreferrer">
<i class="external icon"></i>
<translate translate-context="Content/Moderation/Link/Verb">Open remote profile</translate>&nbsp;
......@@ -306,10 +310,14 @@
<script>
import axios from "axios"
import logger from "@/logging"
import FetchButton from "@/components/federation/FetchButton"
export default {
props: ["id"],
components: {
FetchButton
},
data() {
return {
isLoading: true,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment