Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
12 lines
259 B
JavaScript
12 lines
259 B
JavaScript
export default {
|
|
hooks: {
|
|
"content:afterSave": async (event, ctx) => {
|
|
const images = event.content.images ?? [];
|
|
await ctx.storage.gallery.put(event.content.id, {
|
|
count: images.length,
|
|
updatedAt: new Date().toISOString(),
|
|
});
|
|
},
|
|
},
|
|
};
|