Resolve "Redesign the sidebar/navigation to simplify the UI"

This commit is contained in:
Eliot Berriot 2019-12-26 11:38:26 +01:00
commit e15d806634
38 changed files with 2065 additions and 1571 deletions

View file

@ -127,7 +127,8 @@ const FETCH_URL = "radios/radios/"
export default {
mixins: [OrderingMixin, PaginationMixin, TranslationsMixin],
props: {
defaultQuery: { type: String, required: false, default: "" }
defaultQuery: { type: String, required: false, default: "" },
scope: { type: String, required: false, default: "all" },
},
components: {
RadioCard,
@ -183,10 +184,11 @@ export default {
this.isLoading = true
let url = FETCH_URL
let params = {
scope: this.scope,
page: this.page,
page_size: this.paginateBy,
name__icontains: this.query,
ordering: this.getOrderingAsString()
ordering: this.getOrderingAsString(),
}
logger.default.debug("Fetching radios")
axios.get(url, { params: params }).then(response => {