Skip to content

Commit

Permalink
Update UpdatePanel.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Aug 29, 2024
1 parent ac7bcee commit 95be7ba
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
class="w-full h-[28px] flex justify-center items-center p-1 space-x-4 border-b border-gray-500 bg-teal-800"
>
<div class="w-5 h-5 bg-[#243d36] rounded-full p-1">
<img class="w-3" src="/img/icon/base-header-icons/header-update-button-green.png" alt="icon" />
<img class="w-3" src="/img/icon/base-header-icons/header-update-button-green.png" alt="icon" @click="copyUpdates"/>
</div>
<span class="text-center text-sm text-gray-300 font-semibold">{{
$t("updatePanel.availablePlugin")
Expand Down Expand Up @@ -326,6 +326,10 @@ const searchUpdate = () => {
useUpdateCheck();
};

const copyUpdates = () => {
navigator.clipboard.writeText(serviceStore.newUpdates.map(u => "- " + u.name + " to " + u.version).join("\n"));
};

const checkStereumUpdate = computed(() => {
if (headerStore.stereumUpdate && headerStore.stereumUpdate.version)
return headerStore.stereumUpdate.commit != headerStore.stereumUpdate.current_commit ? true : false;
Expand Down

0 comments on commit 95be7ba

Please sign in to comment.