Merge branch 'release/v2' of github.com:KevinMidboe/seasoned into release/v2
This commit is contained in:
@@ -44,7 +44,7 @@
|
|||||||
</sidebar-list-element>
|
</sidebar-list-element>
|
||||||
<sidebar-list-element v-if="admin" @click="showTorrents=!showTorrents"
|
<sidebar-list-element v-if="admin" @click="showTorrents=!showTorrents"
|
||||||
:iconRef="'#icon_torrents'" :active="showTorrents"
|
:iconRef="'#icon_torrents'" :active="showTorrents"
|
||||||
:supplementaryText="'23 results'">
|
:supplementaryText="numberOfTorrentResults">
|
||||||
|
|
||||||
Search for torrents
|
Search for torrents
|
||||||
</sidebar-list-element>
|
</sidebar-list-element>
|
||||||
@@ -119,7 +119,7 @@ import img from '@/directives/v-image.js'
|
|||||||
import TorrentList from './TorrentList.vue'
|
import TorrentList from './TorrentList.vue'
|
||||||
import Person from './Person.vue'
|
import Person from './Person.vue'
|
||||||
import SidebarListElement from './ui/sidebarListElem.vue'
|
import SidebarListElement from './ui/sidebarListElem.vue'
|
||||||
|
import store from '@/store.js'
|
||||||
import LoadingPlaceholder from './ui/LoadingPlaceholder.vue'
|
import LoadingPlaceholder from './ui/LoadingPlaceholder.vue'
|
||||||
|
|
||||||
import { getMovie, getShow, request, getRequestStatus } from '@/api.js'
|
import { getMovie, getShow, request, getRequestStatus } from '@/api.js'
|
||||||
@@ -187,6 +187,12 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
numberOfTorrentResults: () => {
|
||||||
|
let numTorrents = store.getters['torrentModule/resultCount']
|
||||||
|
return numTorrents ? numTorrents + ' results' : null
|
||||||
|
}
|
||||||
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
document.title = this.prevDocumentTitle
|
document.title = this.prevDocumentTitle
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user