mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-06-16 02:37:19 +08:00
parent
64a453c44a
commit
a1df2de7e2
@ -39,7 +39,12 @@
|
||||
<v-img v-else :class="getIconClass(sub.icon)" :src="sub.icon" />
|
||||
</v-list-item-avatar>
|
||||
<v-list-item-content>
|
||||
{{ sub.name }}
|
||||
<template v-if="sub['display-name']">
|
||||
{{ sub['display-name'] }} ({{ sub.name }})
|
||||
</template>
|
||||
<template v-else>
|
||||
{{ sub.name }}
|
||||
</template>
|
||||
</v-list-item-content>
|
||||
<v-spacer></v-spacer>
|
||||
<v-checkbox v-model="selected" :value="sub.name" class="pr-1" />
|
||||
|
@ -64,8 +64,8 @@
|
||||
<v-list-item-title class="font-weight-medium" v-text="collection['display-name'] || collection.name">
|
||||
</v-list-item-title>
|
||||
<v-chip-group column>
|
||||
<v-chip v-for="subs in collection.subscriptions" :key="subs" class="ma-2 ml-0 mr-1 pa-2" label small>
|
||||
{{ subs }}
|
||||
<v-chip v-for="subs in collection.subsInfo" :key="subs.name" class="ma-2 ml-0 mr-1 pa-2" label small>
|
||||
{{ subs['display-name'] || subs.name}}
|
||||
</v-chip>
|
||||
</v-chip-group>
|
||||
</v-list-item-content>
|
||||
@ -175,8 +175,14 @@ export default {
|
||||
},
|
||||
collections() {
|
||||
const cols = this.$store.state.collections;
|
||||
return Object.keys(cols).map(k => cols[k]);
|
||||
}
|
||||
const collections = Object.keys(cols).map(k => cols[k]);
|
||||
const subscriptions = this.$store.state.subscriptions;
|
||||
collections.map(item => {
|
||||
item.subsInfo = []
|
||||
item.subscriptions.map(sub => item.subsInfo.push(subscriptions[sub]))
|
||||
})
|
||||
return collections
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user