Ajusta placeholders, formulários e widgets
This commit is contained in:
parent
343f0c8c64
commit
b94cea2f9a
33 changed files with 2122 additions and 462 deletions
|
|
@ -639,7 +639,9 @@ export const ensureQueueSummaryWidget = mutation({
|
|||
)
|
||||
const widgetKey = generateWidgetKey(dashboardId)
|
||||
const config = normalizeQueueSummaryConfig(undefined)
|
||||
const layout = queueSummaryLayout(widgetKey)
|
||||
const layoutWithKey = queueSummaryLayout(widgetKey)
|
||||
const widgetLayout = { ...layoutWithKey }
|
||||
delete (widgetLayout as { i?: string }).i
|
||||
const widgetId = await ctx.db.insert("dashboardWidgets", {
|
||||
tenantId,
|
||||
dashboardId,
|
||||
|
|
@ -647,7 +649,7 @@ export const ensureQueueSummaryWidget = mutation({
|
|||
title: config.title,
|
||||
type: "queue-summary",
|
||||
config,
|
||||
layout,
|
||||
layout: widgetLayout,
|
||||
order: 0,
|
||||
createdBy: actorId,
|
||||
updatedBy: actorId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue