mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 15:24:05 +00:00
missed settings
This commit is contained in:
parent
bdcdf47e52
commit
d21f7971b5
1 changed files with 5 additions and 5 deletions
|
@ -435,7 +435,7 @@ dayjs.extend(timezone);
|
||||||
|
|
||||||
import { timezoneList, setPageLocale } from "../util-frontend";
|
import { timezoneList, setPageLocale } from "../util-frontend";
|
||||||
import { useToast } from "vue-toastification";
|
import { useToast } from "vue-toastification";
|
||||||
import { debug } from "../util.ts";
|
import { log } from "../util.ts";
|
||||||
|
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
|
@ -639,20 +639,20 @@ export default {
|
||||||
this.loadDatabaseSize();
|
this.loadDatabaseSize();
|
||||||
toast.success("Done");
|
toast.success("Done");
|
||||||
} else {
|
} else {
|
||||||
debug(res);
|
log("settings", res, "debug");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
loadDatabaseSize() {
|
loadDatabaseSize() {
|
||||||
debug("load database size");
|
log("settings", "load database size", "debug");
|
||||||
this.$root.getSocket().emit("getDatabaseSize", (res) => {
|
this.$root.getSocket().emit("getDatabaseSize", (res) => {
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.databaseSize = res.size;
|
this.databaseSize = res.size;
|
||||||
debug("database size: " + res.size);
|
log("settings", "database size: " + res.size, "debug");
|
||||||
} else {
|
} else {
|
||||||
debug(res);
|
log("settings", res, "debug");
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue