From 2823517b262a75a10197f9be94e255c06633df51 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Tue, 9 Jan 2024 15:27:33 -0600 Subject: [PATCH] fix: 6.10 view release notes js --- web/store/updateOsActions.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/store/updateOsActions.ts b/web/store/updateOsActions.ts index 7ed189e2e..cc5ad1e35 100644 --- a/web/store/updateOsActions.ts +++ b/web/store/updateOsActions.ts @@ -199,9 +199,15 @@ export const useUpdateOsActionsStore = defineStore('updateOsActions', () => { /** * By default this will display current version's release notes */ - const viewReleaseNotes = (modalTitle:string, webguiFilePath?:string|undefined) => { // @ts-ignore - if (typeof openChanges === 'function') { // @ts-ignore + const viewReleaseNotes = (modalTitle:string, webguiFilePath?:string|undefined) => { + // @ts-ignore + if (typeof openChanges === 'function') { + // @ts-ignore openChanges(`showchanges ${webguiFilePath ?? '/var/tmp/unRAIDServer.txt'}`, modalTitle); + // @ts-ignore + } else if (typeof openBox === 'function') { + // @ts-ignore + openBox(`/plugins/dynamix.plugin.manager/include/ShowChanges.php?file=${webguiFilePath ?? '/var/tmp/unRAIDServer.txt'}`, modalTitle, 600, 900); } else { alert('Unable to open release notes'); }