diff --git a/src/admin/components/categories-list.vue b/src/admin/components/categories-list.vue
new file mode 100644
index 000000000..4b6400719
--- /dev/null
+++ b/src/admin/components/categories-list.vue
@@ -0,0 +1,21 @@
+
+
+
Categories List
+
+
+
+
+
+
+
+
diff --git a/src/admin/components/fields-list.vue b/src/admin/components/fields-list.vue
new file mode 100644
index 000000000..9d6c6c3bf
--- /dev/null
+++ b/src/admin/components/fields-list.vue
@@ -0,0 +1,21 @@
+
+
+
Fields List
+
+
+
+
+
+
+
+
diff --git a/src/admin/components/filters-list.vue b/src/admin/components/filters-list.vue
new file mode 100644
index 000000000..471fc72dc
--- /dev/null
+++ b/src/admin/components/filters-list.vue
@@ -0,0 +1,21 @@
+
+
+
Filters List
+
+
+
+
+
+
+
+
diff --git a/src/admin/components/items-list.vue b/src/admin/components/items-list.vue
index dbe783713..55375fd54 100644
--- a/src/admin/components/items-list.vue
+++ b/src/admin/components/items-list.vue
@@ -101,12 +101,10 @@ export default {
isLoading: false,
totalItems: 0,
page: 1,
- itemsPerPage: 2
+ itemsPerPage: 2,
+ collectionId: Number
}
},
- props: {
- collectionId: Number
- },
methods: {
...mapActions('collection', [
'fetchItems',
@@ -212,6 +210,14 @@ export default {
return this.getItems();
}
},
+ created() {
+ this.collectionId = this.$route.fullPath.split("/").pop();
+ if (isNaN(this.collectionId)) {
+ let routeArray = this.$route.fullPath.split("/");
+ routeArray.pop();
+ this.collectionId = routeArray.pop();
+ }
+ },
mounted(){
this.loadItems();
this.fetchFields(this.collectionId).then((res) => {
diff --git a/src/admin/components/primary-menu.vue b/src/admin/components/primary-menu.vue
index 32c6ef1f6..981441d65 100644
--- a/src/admin/components/primary-menu.vue
+++ b/src/admin/components/primary-menu.vue
@@ -2,22 +2,22 @@