Added generic entity page.

This commit is contained in:
2020-06-27 04:50:13 +02:00
parent af56378ee2
commit 0e8b4caac3
19 changed files with 668 additions and 44 deletions

View File

@@ -30,7 +30,7 @@
</router-link>
<router-link
:to="{ params: { tags: selectedTags.length === 1 && selectedTags.includes(tag) ? 'all-tags' : tag } }"
:to="{ params: { tags: selectedTags.length === 1 && selectedTags.includes(tag) ? 'all' : tag } }"
class="name"
>{{ tag }}</router-link>
</li>
@@ -56,7 +56,7 @@ const tags = [
function getNewRange(tag) {
if (this.selectedTags.includes(tag)) {
if (this.selectedTags.length === 1) {
return 'all-tags';
return 'all';
}
return this.selectedTags.filter(selectedTag => selectedTag !== tag).join('+');
@@ -66,7 +66,7 @@ function getNewRange(tag) {
}
function selectedTags() {
return this.$route.params.tags.split('+').filter(selectedTag => selectedTag !== 'all-tags');
return this.$route.params.tags.split('+').filter(selectedTag => selectedTag !== 'all');
}
export default {

View File

@@ -43,7 +43,7 @@
:href="href"
:class="{ active: isActive }"
@click="navigate"
>Sites</a>
>Channels</a>
</router-link>
</li>