Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_query(query) {
const {
pageSize = this.pageSize(),
page = this.page()
} = query;
const url = realizeUri(this.pathname, null, { page, pageSize });
this.dispatch(requestLocation(url));
}
}
_query(params) {
const {
page = this.page(),
pageSize = this.pageSize(),
sortBy = this.sorting().sortBy,
order = this.sorting().order
} = params;
const url = realizeUri(this.pathname, null, { page, pageSize, sortBy, order });
this.dispatch(requestLocation(url));
}
_query(query) {
const {
part = this.selectedPart(),
page = this.page(),
pageSize = this.pageSize()
} = query;
const url = realizeUri(this.pathname, null, {
part: part !== '' ? part : undefined,
page,
pageSize
});
this.dispatch(requestLocation(url));
}
}
onToggleSection() {
this.dispatch(requestLocation(this.toggleUri));
}
}
onToggleSection() {
this.dispatch(requestLocation(this.toggleUri));
}
onToggleSection() {
this.dispatch(requestLocation(this.toggleUri));
}
onToggleSection() {
this.dispatch(requestLocation(this.toggleUri));
}
onSort(sorting) {
const query = ko.deepUnwrap(sorting);
const url = realizeUri(this.pathname, {}, query);
action$.next(requestLocation(url));
}
onPage(page) {
const nextPageUri = realizeUri(this.baseRoute, {}, { page });
action$.next(requestLocation(nextPageUri));
}
}
export function redirectTo(route = model.routeContext().pathname, params = {}, query = {}) {
logAction('redirectTo', { route, params, query });
const uri = realizeUri(route, Object.assign({}, model.routeContext().params, params), query);
action$.next(requestLocation(uri, true));
}