Vue Attract: Default sort shots by cut_in_timeline_in_frames

This commit is contained in:
Tobias Johansson 2019-02-12 12:59:01 +01:00
parent 2f5f73843d
commit 250c7e2631

View File

@ -1,8 +1,9 @@
function thenGetNodes(where, embedded={}) { function thenGetNodes(where, embedded={}, sort='') {
let encodedWhere = encodeURIComponent(JSON.stringify(where)); let encodedWhere = encodeURIComponent(JSON.stringify(where));
let encodedEmbedded = encodeURIComponent(JSON.stringify(embedded)); let encodedEmbedded = encodeURIComponent(JSON.stringify(embedded));
let encodedSort = encodeURIComponent(sort);
return $.get(`/api/nodes?where=${encodedWhere}&embedded=${encodedEmbedded}`); return $.get(`/api/nodes?where=${encodedWhere}&embedded=${encodedEmbedded}&sort=${encodedSort}`);
} }
export { thenGetNodes } export { thenGetNodes }