fix: 6.10 view release notes js

This commit is contained in:
Zack Spear
2024-01-09 15:27:33 -06:00
committed by Zack Spear
parent 3e0a8d0070
commit 2823517b26

View File

@@ -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');
}