Refactor various components to improve code clarity and maintainability. Update ListUsersQueryHandler to utilize UserListFilter for parameter handling. Refactor BumperSpecFactory and related classes to encapsulate input parameters into dedicated records, enhancing readability. Adjust MediaAsset and Slot classes to streamline content updates with new content models. Improve BumperRenderBackgroundService and MediaProcessingBackgroundService to use MediaReadyInfo for asset readiness, ensuring consistent parameter management across the application.
This commit is contained in:
@@ -66,8 +66,10 @@ export function ChannelDetail({ channelId }: { channelId: string }) {
|
||||
setApplyOpen(false)
|
||||
toast.success(t('admin.channels.applied', { count: result.added }))
|
||||
// Предупреждения показываем по одному: каждое указывает на конкретный слот.
|
||||
for (const warning of result.warnings)
|
||||
toast.error(`${t(`admin.channels.warnings.${warning.kind}`)}: ${warning.details}`)
|
||||
for (const warning of result.warnings) {
|
||||
const kind = t(`admin.channels.warnings.${warning.kind}`)
|
||||
toast.error(`${kind}: ${warning.details}`)
|
||||
}
|
||||
invalidate()
|
||||
},
|
||||
onError,
|
||||
|
||||
Reference in New Issue
Block a user