|
|
|
@ -16,7 +16,8 @@ const TimeTrack = {
@@ -16,7 +16,8 @@ const TimeTrack = {
|
|
|
|
|
searchQuery: '', |
|
|
|
|
portal: '', |
|
|
|
|
portals: null, |
|
|
|
|
importStringForPortals: '' |
|
|
|
|
importStringForPortals: '', |
|
|
|
|
publicDB: false |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
@ -55,6 +56,9 @@ const TimeTrack = {
@@ -55,6 +56,9 @@ const TimeTrack = {
|
|
|
|
|
let storedShowPT = localStorage.getItem('showPT'); |
|
|
|
|
this.showPT = (storedShowPT == null || false) ? true : storedShowPT; |
|
|
|
|
|
|
|
|
|
let storedPublicDB = localStorage.getItem('publicDB'); |
|
|
|
|
this.publicDB = (storedPublicDB == null || false) ? false : storedPublicDB; |
|
|
|
|
|
|
|
|
|
let storedTheme = localStorage.getItem('theme'); |
|
|
|
|
this.theme = storedTheme == null ? 'materia' : storedTheme; |
|
|
|
|
|
|
|
|
@ -70,6 +74,7 @@ const TimeTrack = {
@@ -70,6 +74,7 @@ const TimeTrack = {
|
|
|
|
|
localStorage.setItem('portals', JSON.stringify(this.portals)); |
|
|
|
|
localStorage.setItem('ticketSystemUrl', this.ticketSystemUrl); |
|
|
|
|
localStorage.setItem('showPT', this.showPT); |
|
|
|
|
localStorage.setItem('publicDB', this.publicDB); |
|
|
|
|
localStorage.setItem('theme', this.theme); |
|
|
|
|
localStorage.setItem('portal', this.portal); |
|
|
|
|
|
|
|
|
@ -320,8 +325,9 @@ const TimeTrack = {
@@ -320,8 +325,9 @@ const TimeTrack = {
|
|
|
|
|
}, |
|
|
|
|
sendPortalChangeRequest() { |
|
|
|
|
let vue = this; |
|
|
|
|
let publicDBParam = this.publicDB ? '&publicDB=1' : ''; |
|
|
|
|
axios.get( |
|
|
|
|
'https://settings.vemap.docker/?portal2change=' + this.portal |
|
|
|
|
'https://settings.vemap.docker/?portal2change=' + this.portal + publicDBParam |
|
|
|
|
).then((response) => { |
|
|
|
|
// console.log(response)
|
|
|
|
|
}).catch((error) => { |
|
|
|
@ -350,6 +356,10 @@ const TimeTrack = {
@@ -350,6 +356,10 @@ const TimeTrack = {
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
publicDB() { |
|
|
|
|
this.updateStorage(); |
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
}, |
|
|
|
|
showPT() { |
|
|
|
|
this.updateStorage(); |
|
|
|
|
this.$forceUpdate(); |
|
|
|
|