Revision 7218849a
Added by koszko over 1 year ago
html/payload_create.js | ||
---|---|---|
137 | 137 |
{ |
138 | 138 |
const db = await haketilodb.get(); |
139 | 139 |
const tx_starter = haketilodb.start_items_transaction; |
140 |
const tx_ctx = await tx_starter(["resources", "mappings"], saving.files);
|
|
140 |
const tx_ctx = await tx_starter(["resource", "mapping"], saving.files);
|
|
141 | 141 |
|
142 |
for (const [type, store_name] of |
|
143 |
[["resource", "resources"], ["mapping", "mappings"]]) { |
|
142 |
for (const type of ["resource", "mapping"]) { |
|
144 | 143 |
if (!saving[`override_${type}`] && |
145 |
(await haketilodb.idb_get(tx_ctx.transaction, store_name,
|
|
144 |
(await haketilodb.idb_get(tx_ctx.transaction, type,
|
|
146 | 145 |
saving.identifier))) { |
147 | 146 |
saving.ask_override = type; |
148 | 147 |
return; |
Also available in: Unified diff
add a mapping/resources installation dialog