From 6363bb6eb26294c92e4e653a28a1360421cc8d9e Mon Sep 17 00:00:00 2001 From: NeoPlays <80448387+NeoPlays@users.noreply.github.com> Date: Thu, 29 Aug 2024 13:49:32 +0200 Subject: [PATCH] ADD: Stereum Version and OS Updates to copy paste (#2020) --- .../UI/base-header/components/modals/UpdatePanel.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/launcher/src/components/UI/base-header/components/modals/UpdatePanel.vue b/launcher/src/components/UI/base-header/components/modals/UpdatePanel.vue index e0103ff5e..79c0735d3 100755 --- a/launcher/src/components/UI/base-header/components/modals/UpdatePanel.vue +++ b/launcher/src/components/UI/base-header/components/modals/UpdatePanel.vue @@ -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(() => {