fix: sync manager list sorting
This commit is contained in:
parent
75ca707edc
commit
acaef3d507
|
|
@ -58,7 +58,7 @@
|
|||
"unist-util-visit": "^5.0.0",
|
||||
"unist-util-visit-parents": "^6.0.1",
|
||||
"yamljs": "^0.3.0",
|
||||
"zotero-plugin-toolkit": "^2.3.26"
|
||||
"zotero-plugin-toolkit": "^2.3.28"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ export async function showSyncManager() {
|
|||
// @ts-ignore TODO: Fix type in zotero-plugin-toolkit
|
||||
.setProp("onColumnSort", (columnIndex, ascending) => {
|
||||
addon.data.sync.manager.columnIndex = columnIndex;
|
||||
addon.data.sync.manager.columnAscending = ascending;
|
||||
addon.data.sync.manager.columnAscending = ascending > 0;
|
||||
refresh();
|
||||
})
|
||||
.render();
|
||||
|
|
|
|||
Loading…
Reference in New Issue