Skip to content

Commit

Permalink
ADD: Stereum Version and OS Updates to copy paste (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoPlays authored Aug 29, 2024
1 parent 95be7ba commit 6363bb6
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,14 @@ const searchUpdate = () => {
};

const copyUpdates = () => {
navigator.clipboard.writeText(serviceStore.newUpdates.map(u => "- " + u.name + " to " + u.version).join("\n"));
let string = serviceStore.newUpdates.map(u => "- " + u.name + " to " + u.version).join("\n")
if(checkStereumUpdate.value){
string += "\n- Stereum to " + headerStore.stereumUpdate.version
}
if(serverStore.numberOfUpdatablePackages && serverStore.numberOfUpdatablePackages > 0){
string += "\n- OS Updates"
}
navigator.clipboard.writeText(string);
};

const checkStereumUpdate = computed(() => {
Expand Down

0 comments on commit 6363bb6

Please sign in to comment.