Add restore functionality for template management and enhance related components
Implemented a new endpoint for restoring templates to their last applied state, allowing users to revert changes made since the last application. Updated the ScheduleTemplate class to include a snapshot of the last applied state, enabling rollback capabilities. Enhanced the frontend with a restore button in the ChannelDetail component, providing users with a confirmation prompt before executing the restore action. Localization updates were made to support new UI strings in both English and Russian, improving the overall user experience in template management.
This commit is contained in:
@@ -59,6 +59,11 @@ public static class TemplateErrors
|
||||
"Врезке нужна группа, откуда брать ролики."
|
||||
);
|
||||
|
||||
public static readonly Error NothingToRestore = Error.Validation(
|
||||
"Templates.NothingToRestore",
|
||||
"Откатывать не к чему: сетка ещё ни разу не применялась."
|
||||
);
|
||||
|
||||
public static readonly Error NoGroupsToGenerate = Error.Validation(
|
||||
"Templates.NoGroupsToGenerate",
|
||||
"Собирать сетку не из чего: нет ни одной группы с готовым медиа."
|
||||
|
||||
Reference in New Issue
Block a user