Finished settings page

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-10-02 18:09:51 +02:00
parent 5f7e4e2cf2
commit cb5f43bf25
53 changed files with 430 additions and 63 deletions

View File

@@ -11,13 +11,13 @@ export const mutations = {
};
export const actions = {
update(context, instance) {
update(context) {
axios.post("/api", {
request: "get_disk_usage"
})
.then(function(response) {
if (response.data.status === "OK") {
instance.$store.commit("diskUsage/update", response.data.disk_usage);
context.commit("update", response.data.disk_usage);
}
});
},