fix(admin): shadow-DOM-aware plain keys, commit drafts before shortcut saves and safe My account links (B-WR-01, B-WR-02, B-WR-03, B-WR-06, B-IN-01)
- plain-key shortcuts test composedPath()[0], and a custom element inside a form counts as editable (closed shadow roots) - Ctrl/Cmd+S and Ctrl/Cmd+Enter blur the focused field before clicking, so a pending taglist draft or native change is committed, then refocus it - safeUrl keeps javascript:/data: URLs out of href and window.open - a failed contributions GET shows a toast and keeps the sections; a section with error true shows an error line - My account confirm and stale texts get their own phrase keys - rebuilt modules/boardwalk/dist
This commit is contained in:
@@ -12,7 +12,7 @@ const CONTRIBUTIONS = `${API}/account/contributions`
|
||||
const OPEN = `${CONTRIBUTIONS}/site_link/actions/open`
|
||||
|
||||
const strings = {
|
||||
'backend::lang.form.action_stale': { other: 'This action no longer applies.' },
|
||||
'backend::lang.myaccount.action_stale': { other: 'This action no longer applies.' },
|
||||
'backend::lang.form.action_done': { other: 'Action completed.' },
|
||||
}
|
||||
|
||||
|
||||
9
admin/tests/fixtures/lang.json
vendored
9
admin/tests/fixtures/lang.json
vendored
@@ -513,6 +513,12 @@
|
||||
"many": "Odłączono :count rekordów",
|
||||
"other": "Odłączono :count rekordu"
|
||||
},
|
||||
"backend::lang.myaccount.action_confirm": {
|
||||
"other": "Wykonać „:action”?"
|
||||
},
|
||||
"backend::lang.myaccount.action_stale": {
|
||||
"other": "Ta akcja nie ma już zastosowania. Strona została odświeżona."
|
||||
},
|
||||
"backend::lang.myaccount.avatar": {
|
||||
"other": "Awatar"
|
||||
},
|
||||
@@ -585,6 +591,9 @@
|
||||
"backend::lang.myaccount.saved": {
|
||||
"other": "Zapisano konto"
|
||||
},
|
||||
"backend::lang.myaccount.section_error": {
|
||||
"other": "Nie udało się wczytać tej sekcji."
|
||||
},
|
||||
"backend::lang.myaccount.subtitle": {
|
||||
"other": "Podtytuł"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user