diff --git a/cateditor/src/components/CatalogContents.vue b/cateditor/src/components/CatalogContents.vue index e0e8ced..9c498f9 100644 --- a/cateditor/src/components/CatalogContents.vue +++ b/cateditor/src/components/CatalogContents.vue @@ -184,12 +184,12 @@ export default { }, methods: { - selectSection: function(id) { + selectSection(id) { console.log('select section', id) this.$store.dispatch('selectSection', id) }, - selectModel: function(id) { + selectModel(id) { console.log('select model', id) this.$store.dispatch('selectModel', id) }, @@ -204,7 +204,7 @@ export default { } }, - sectionListItemClasses: function(id, hovering) { + sectionListItemClasses(id, hovering) { if (id === this.selectedSectionID) { return 'list-item primary' } else if (hovering) { @@ -214,7 +214,7 @@ export default { } }, - modelListItemClasses: function(id, hovering) { + modelListItemClasses(id, hovering) { if (id === this.selectedModelID) { return 'list-item primary' } else if (hovering) { @@ -224,7 +224,7 @@ export default { } }, - materialListItemClasses: function(id, hovering) { + materialListItemClasses(id, hovering) { if (hovering) { return 'list-item grey lighten-4' } else { @@ -232,14 +232,14 @@ export default { } }, - reorderModel: function(fromIndex, toIndex) { + reorderModel(fromIndex, toIndex) { let models = this.selectedModels arrayMove.mutate(models, fromIndex, toIndex) let pages = paginateModels(models) this.setSectionPages({ section: this.selectedSection, pages: pages }) }, - reorderMaterial: function(fromIndex, toIndex) { + reorderMaterial(fromIndex, toIndex) { let mats = this.selectedMaterials arrayMove.mutate(mats, fromIndex, toIndex) this.setModelMaterials({ model: this.selectedModel, materials: mats })