used object short hands wherever possible
MODIFY
templates/Web/Pages/Vue.Grid/src/views/VueGrid.vue
templates/Web/Pages/Vue.Grid/src/views/VueGrid.vue
@@ -46,7 +46,7 @@ export default {
WarningMessage
},
- data: function() {
+ data() {
return {
gridTextAssets: [
{
@@ -60,12 +60,12 @@ export default {
};
},
- created: function() {
+ created() {
this.fetchTextAssets();
},
methods: {
- fetchTextAssets: function() {
+ fetchTextAssets() {
fetch(CONSTANTS.ENDPOINT.GRID)
.then(response => {
if (!response.ok) {
@@ -83,7 +83,7 @@ export default {
} ${error}`;
});
},
- handleWarningClose: function() {
+ handleWarningClose() {
this.WarningMessageOpen = false;
this.WarningMessageText = "";
}

MODIFY
templates/Web/Pages/Vue.List/src/views/VueList.vue
templates/Web/Pages/Vue.List/src/views/VueList.vue
@@ -37,7 +37,7 @@ export default {
WarningMessage
},
- data: function() {
+ data() {
return {
list: [],
textField: "",
@@ -46,12 +46,12 @@ export default {
};
},
- created: function() {
+ created() {
this.fetchTextAssets();
},
methods: {
- fetchTextAssets: function() {
+ fetchTextAssets() {
fetch(CONSTANTS.ENDPOINT.LIST)
.then(response => {
if (!response.ok) {
@@ -67,7 +67,7 @@ export default {
} ${error}`;
});
},
- handleAddListItem: function() {
+ handleAddListItem() {
// Warning Pop Up if the user submits an empty message
if (!this.textField) {
this.WarningMessageOpen = true;

MODIFY
templates/Web/Pages/Vue.MasterDetail/src/views/VueMasterDetail.vue
templates/Web/Pages/Vue.MasterDetail/src/views/VueMasterDetail.vue
@@ -39,7 +39,7 @@ export default {
WarningMessage
},
- data: function() {
+ data() {
return {
masterDetailText: [
{
@@ -55,12 +55,12 @@ export default {
};
},
- created: function() {
+ created() {
this.fetchTextAssets();
},
methods: {
- fetchTextAssets: function() {
+ fetchTextAssets() {
fetch(CONSTANTS.ENDPOINT.MASTERDETAIL)
.then(response => {
if (!response.ok) {
@@ -78,11 +78,11 @@ export default {
} ${error}`;
});
},
- handleWarningClose: function() {
+ handleWarningClose() {
this.WarningMessageOpen = false;
this.WarningMessageText = "";
},
- handleDisplayTabClick: function(id) {
+ handleDisplayTabClick(id) {
this.currentDisplayTabIndex = id;
}
}

used object short hands wherever possible (#986)