mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-28 01:12:22 +00:00
Fixed Docker system status widget issue
This commit is contained in:
parent
43fd2fff2b
commit
157e29b420
@ -2382,7 +2382,7 @@ def API_updateDashboardConfigurationItem():
|
|||||||
valid, msg = DashboardConfig.SetConfig(
|
valid, msg = DashboardConfig.SetConfig(
|
||||||
data["section"], data["key"], data['value'])
|
data["section"], data["key"], data['value'])
|
||||||
if not valid:
|
if not valid:
|
||||||
return ResponseObject(False, msg, status_code=404)
|
return ResponseObject(False, msg)
|
||||||
if data['section'] == "Server":
|
if data['section'] == "Server":
|
||||||
if data['key'] == 'wg_conf_path':
|
if data['key'] == 'wg_conf_path':
|
||||||
WireguardConfigurations.clear()
|
WireguardConfigurations.clear()
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import LocaleText from "@/components/text/localeText.vue";
|
import LocaleText from "@/components/text/localeText.vue";
|
||||||
import AgentContainer from "@/components/navbarComponents/agentContainer.vue";
|
|
||||||
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
||||||
|
|
||||||
const emits = defineEmits(['close'])
|
const emits = defineEmits(['close'])
|
||||||
|
@ -72,7 +72,7 @@ const data = computed(() => {
|
|||||||
</h6>
|
</h6>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress" role="progressbar" style="height: 6px">
|
<div class="progress" role="progressbar" style="height: 6px">
|
||||||
<div class="progress-bar bg-success" :style="{width: `${data?.Disks.find(x => x.mountPoint === '/').percent}%` }"></div>
|
<div class="progress-bar bg-success" :style="{width: `${data?.Disks.find(x => x.mountPoint === '/') ? data?.Disks.find(x => x.mountPoint === '/').percent : data?.Disks[0].percent}%` }"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="d-flex mt-2 gap-1">
|
<div class="d-flex mt-2 gap-1">
|
||||||
<StorageMount v-for="(disk, count) in data?.Disks"
|
<StorageMount v-for="(disk, count) in data?.Disks"
|
||||||
|
@ -9,7 +9,6 @@ import { createPinia } from 'pinia'
|
|||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router/router.js'
|
import router from './router/router.js'
|
||||||
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
import {DashboardConfigurationStore} from "@/stores/DashboardConfigurationStore.js";
|
||||||
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
|
||||||
let Locale;
|
let Locale;
|
||||||
await fetch("/api/locale")
|
await fetch("/api/locale")
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
@ -24,7 +23,6 @@ const pinia = createPinia();
|
|||||||
pinia.use(({ store }) => {
|
pinia.use(({ store }) => {
|
||||||
store.$router = markRaw(router)
|
store.$router = markRaw(router)
|
||||||
})
|
})
|
||||||
pinia.use(piniaPluginPersistedstate)
|
|
||||||
|
|
||||||
app.use(pinia)
|
app.use(pinia)
|
||||||
const store = DashboardConfigurationStore()
|
const store = DashboardConfigurationStore()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user