forked from DebaucheryLibrarian/traxxx
Added generic entity page.
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
:href="href"
|
||||
:class="{ active: isActive }"
|
||||
@click="navigate"
|
||||
>Sites</a>
|
||||
>Channels</a>
|
||||
</router-link>
|
||||
</li>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user