ali пре 2 година
родитељ
комит
2cafc9c684
1 измењених фајлова са 2 додато и 5 уклоњено
  1. 2 5
      src/pages/Admin/Category/create.vue

+ 2 - 5
src/pages/Admin/Category/create.vue

@@ -71,7 +71,7 @@ export default {
       showRouteName: 'Admin.Category.Show',
       inputs: [
         { type: 'input', name: 'title', responseKey: 'title', label: 'نام دسته بندی', col: 'col-md-6' },
-        { type: BtnControlComp, name: 'btn', responseKey: 'btn', label: 'تایید', col: 'col-md-6' }
+        { type: BtnControlComp, name: 'btn', responseKey: 'btn', atClick: this.createCategory, label: 'تایید', col: 'col-md-6' }
       ]
     }
   },
@@ -79,10 +79,7 @@ export default {
     this.mounted = true
   },
   methods: {
-    onInputClick (data) {
-      if (data.input.name !== 'btn') {
-        return
-      }
+    createCategory () {
       this.$refs.classroomEntityCreate.createEntity()
     }
   }