|
|
@ -90,6 +90,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
/** Get the current size of the database */
|
|
|
|
loadDatabaseSize() {
|
|
|
|
loadDatabaseSize() {
|
|
|
|
log.debug("monitorhistory", "load database size");
|
|
|
|
log.debug("monitorhistory", "load database size");
|
|
|
|
this.$root.getSocket().emit("getDatabaseSize", (res) => {
|
|
|
|
this.$root.getSocket().emit("getDatabaseSize", (res) => {
|
|
|
@ -102,6 +103,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Request that the database is shrunk */
|
|
|
|
shrinkDatabase() {
|
|
|
|
shrinkDatabase() {
|
|
|
|
this.$root.getSocket().emit("shrinkDatabase", (res) => {
|
|
|
|
this.$root.getSocket().emit("shrinkDatabase", (res) => {
|
|
|
|
if (res.ok) {
|
|
|
|
if (res.ok) {
|
|
|
@ -113,10 +115,12 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Show the dialog to confirm clearing stats */
|
|
|
|
confirmClearStatistics() {
|
|
|
|
confirmClearStatistics() {
|
|
|
|
this.$refs.confirmClearStatistics.show();
|
|
|
|
this.$refs.confirmClearStatistics.show();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Send the request to clear stats */
|
|
|
|
clearStatistics() {
|
|
|
|
clearStatistics() {
|
|
|
|
this.$root.clearStatistics((res) => {
|
|
|
|
this.$root.clearStatistics((res) => {
|
|
|
|
if (res.ok) {
|
|
|
|
if (res.ok) {
|
|
|
|