mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
fix: 6.10 view release notes js
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user