Entity refactor. Facilitating channels without parent.

This commit is contained in:
2020-06-28 00:15:13 +02:00
parent 0e8b4caac3
commit 3462d7af2a
50 changed files with 934 additions and 1964 deletions

View File

@@ -130,7 +130,6 @@ import FilterBar from '../header/filter-bar.vue';
import Releases from '../releases/releases.vue';
import Sites from '../sites/sites.vue';
import Network from '../tile/network.vue';
import Entity from '../tile/entity.vue';
async function fetchNetwork() {
const { entity, totalCount } = await this.$store.dispatch('fetchEntityBySlugAndType', {
@@ -163,7 +162,6 @@ export default {
Releases,
Sites,
Network,
Entity,
},
data() {
return {

View File

@@ -44,7 +44,7 @@
</template>
<script>
import Entity from '../tile/entity.vue';
import Entity from '../entities/tile.vue';
async function searchEntities() {
this.searchResults = await this.$store.dispatch('searchEntities', {
@@ -54,7 +54,14 @@ async function searchEntities() {
}
async function mounted() {
this.networks = await this.$store.dispatch('fetchEntities', { type: 'network' });
this.networks = await this.$store.dispatch('fetchEntities', {
type: 'network',
entitySlugs: [
'bamvisions',
'evilangel',
'legalporno',
],
});
this.pageTitle = 'Networks';
}