Added option to allow localhost only, and added back button to settings page. scrapped account support

This commit is contained in:
Leon Etienne (ubuntu wsl)
2020-09-30 22:41:00 +02:00
parent 2f0935cddc
commit 66882b3b67
24 changed files with 170 additions and 109 deletions

View File

@@ -0,0 +1,24 @@
import axios from 'axios';
export const state = () => ({
os_name: ""
});
export const mutations = {
update(state, data) {
state.os_name = data;
},
};
export const actions = {
update(context, instance) {
axios.post("/api", {
request: "get_os_name"
})
.then(function(response) {
if (response.data.status === "OK") {
instance.$store.commit("serverOs/update", response.data.os_name);
}
});
},
};