From ad07748aa55092e8649fb7413d51f0309befc59c Mon Sep 17 00:00:00 2001 From: JR Date: Wed, 20 Nov 2019 22:49:28 +0100 Subject: [PATCH] [CLEANUP] Change misspelled variable --- src/StatusBox.vue | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/StatusBox.vue b/src/StatusBox.vue index e864e06..28e3860 100644 --- a/src/StatusBox.vue +++ b/src/StatusBox.vue @@ -23,7 +23,7 @@ PING AS - + {{ tData[0] }} {{ tData[1] }} {{ tData[2] }} @@ -69,9 +69,9 @@ export default { }, deep: true }, - tabeleData : { + tableData : { handler() { - sessionStorage.setItem('tabeleData' + this.boxNumber, JSON.stringify(this.tabeleData)); + sessionStorage.setItem('tableData' + this.boxNumber, JSON.stringify(this.tableData)); }, deep: true } @@ -102,9 +102,9 @@ export default { axios.get("http://"+ this.selectedIp[0] + ":" +this.selectedIp[1] + "/v3/client/request/" + this.target) .then(response => { // JSON responses are automatically parsed. - this.tabeleData = response.data; + this.tableData = response.data; this.setLastExecutionTime(); - this.tableDataHistory.push(this.tabeleData); + this.tableDataHistory.push(this.tableData); }) .catch(e => { this.executionTime = 'Check request' @@ -115,7 +115,7 @@ export default { this.executionTime = 'Not execute yet', this.selectedIp = ["199.247.22.146",12111,20473,1], this.target = '8.8.8.8', - this.tabeleData = [ ], + this.tableData = [ ], this.tableDataHistory = [ ] } }, @@ -129,14 +129,14 @@ export default { if (sessionStorage.getItem('tableDataHistory'+ this.boxNumber)) this.tableDataHistory = JSON.parse(sessionStorage.getItem('tableDataHistory'+ this.boxNumber)); if (sessionStorage.getItem('target'+ this.boxNumber)) this.target = JSON.parse(sessionStorage.getItem('target'+ this.boxNumber)); - if (sessionStorage.getItem('tabeleData'+ this.boxNumber)) this.tabeleData = JSON.parse(sessionStorage.getItem('tabeleData'+ this.boxNumber)); + if (sessionStorage.getItem('tableData'+ this.boxNumber)) this.tableData = JSON.parse(sessionStorage.getItem('tableData'+ this.boxNumber)); }, data: function () { return { executionTime: 'Not execute yet', selectedIp: ["199.247.22.146",12111,20473,1], target: '8.8.8.8', - tabeleData : [ ], + tableData : [ ], tableDataHistory: [] } }