mirror of
https://github.com/unraid/api.git
synced 2026-01-02 14:40:01 -06:00
Compare commits
2 Commits
4.9.3-buil
...
refactor/u
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eeb1340517 | ||
|
|
05b681cd86 |
@@ -1,4 +1,7 @@
|
||||
<script lang="ts" setup>
|
||||
/**
|
||||
* @todo run the unraidcheck when opening the changelog
|
||||
*/
|
||||
import {
|
||||
BellAlertIcon,
|
||||
ExclamationTriangleIcon,
|
||||
@@ -10,6 +13,7 @@ import { useI18n } from 'vue-i18n';
|
||||
import 'tailwindcss/tailwind.css';
|
||||
import '~/assets/main.css';
|
||||
|
||||
// import { WebguiCheckForOsUpdate } from '~/composables/services/webgui';
|
||||
import { WEBGUI_TOOLS_DOWNGRADE, WEBGUI_TOOLS_UPDATE } from '~/helpers/urls';
|
||||
import { useServerStore } from '~/store/server';
|
||||
import { useUpdateOsStore } from '~/store/updateOs';
|
||||
@@ -36,6 +40,15 @@ const rebootRequiredLink = computed(() => {
|
||||
}
|
||||
return '';
|
||||
});
|
||||
|
||||
const viewReleaseNotes = async () => {
|
||||
await updateOsActionsStore.viewReleaseNotes(t('{0} Release Notes', [osVersion.value]));
|
||||
// try {
|
||||
// await WebguiCheckForOsUpdate.get();
|
||||
// } catch (error) {
|
||||
// console.error('[WebguiCheckForOsUpdate] error', error);
|
||||
// }
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -43,7 +56,7 @@ const rebootRequiredLink = computed(() => {
|
||||
<button
|
||||
class="group leading-none"
|
||||
:title="t('View release notes')"
|
||||
@click="updateOsActionsStore.viewReleaseNotes(t('{0} Release Notes', [osVersion]))"
|
||||
@click="viewReleaseNotes"
|
||||
>
|
||||
<UiBadge
|
||||
color="custom"
|
||||
|
||||
@@ -35,6 +35,13 @@ export const WebguiUpdateDns = request.url('/webGui/include/UpdateDNS.php');
|
||||
* @type GET
|
||||
*/
|
||||
export const WebguiState = request.url('/plugins/dynamix.my.servers/data/server-state.php');
|
||||
/**
|
||||
* @name WebguiCheckForOsUpdate
|
||||
* @description used to check for OS updates in the background…will send a notification in unraid if an update is available
|
||||
* @type GET
|
||||
* @todo this doesn't seem to work…
|
||||
*/
|
||||
export const WebguiCheckForOsUpdate = request.url('/plugins/dynamix.plugin.manager/scripts/unraidcheck');
|
||||
/**
|
||||
* Run unraid-api command's via php requests
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user