redis: add item to key

This commit is contained in:
Jan Prochazka
2022-03-13 20:04:52 +01:00
parent 6590830344
commit dc34898cd8
3 changed files with 49 additions and 15 deletions

View File

@@ -83,7 +83,18 @@
}
async function addItem(keyInfo) {
showModal(DbKeyAddItemModal, { keyInfo });
showModal(DbKeyAddItemModal, {
keyInfo,
onConfirm: async row => {
await apiCall('database-connections/call-method', {
conid,
database,
method: keyInfo.addMethod,
args: [keyInfo.key, ...keyInfo.tableColumns.map(col => row[col.name])],
});
refresh();
},
});
}
</script>