Get flat SidePane data on Account/Room models sync

QML: Get the data from Python and print it (for now)

Also:
- Remove useless Model.sortable field, all models/items are sortable
- Change SyncId type hint for less mypy complaints
- Remove ModelItem.main_key class attributes, useless since last big
  refactor
This commit is contained in:
miruka
2019-08-17 22:46:54 -04:00
parent 3cc39210b4
commit 4067d8c4ab
8 changed files with 49 additions and 54 deletions

View File

@@ -20,6 +20,12 @@ function onCoroutineDone(uuid, result) {
function onModelUpdated(syncId, data, serializedSyncId) {
if (serializedSyncId == ["Account"] || serializedSyncId[0] == "Room") {
py.callCoro("get_flat_sidepane_data", [], data => {
print( JSON.stringify( data, null, 4))
})
}
window.modelSources[serializedSyncId] = data
window.modelSourcesChanged()
}