diff --git a/css/app.css b/css/app.css
index 7616edb..031ff19 100644
--- a/css/app.css
+++ b/css/app.css
@@ -150,4 +150,8 @@ nav, .card {
.form-control {
margin-bottom: 1em;
+}
+
+.switch-portal-button {
+ margin-bottom: 0.5em;
}
\ No newline at end of file
diff --git a/index.html b/index.html
index db88902..979e07c 100644
--- a/index.html
+++ b/index.html
@@ -8,6 +8,7 @@
Timetrack
+
@@ -388,18 +389,25 @@
-
-
-
+
+
+
+
+
+
@@ -469,6 +477,7 @@
+
diff --git a/js/app.js b/js/app.js
index bf33787..3dd7181 100644
--- a/js/app.js
+++ b/js/app.js
@@ -312,6 +312,21 @@ const TimeTrack = {
return collection;
},
+ sendPortalChangeRequest() {
+ let vue = this;
+ axios.get(
+ 'https://settings.vemap.docker/?portal2change=' + this.portal
+ ).then((response) => {
+ // console.log(response)
+ }).catch((error) => {
+ // An error is expected here due to apache restarting
+ iziToast.show({
+ message: 'Portal-Wechsel erfolgreich',
+ color: 'green'
+ });
+ vue.updateStorage();
+ })
+ }
},
watch: {
showPT() {