refactor(ui): clean up cancelPendingChange duplication and i18n keys in app.js #252
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#252
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up for PR #177 (next-day settings activation, #114) addressing pass-4 review finding P3-5:
Scope
In
app/static/js/app.js,cancelPendingChangeis a near-duplicate ofdeleteHolidayand reusesconfirmDeleteScheduleExceptionandscheduleExceptionDeletedtranslation keys, causing the UI to report that an exception was "deleted" when the user cancels a pending change. Furthermore, its|| '...'English fallbacks are dead code.Acceptance Criteria
app.js.Refs #177, #114.