-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: validate link form + anchor links (#863)
Co-authored-by: David mattei <[email protected]>
- Loading branch information
1 parent
4bda8e5
commit 759371e
Showing
9 changed files
with
181 additions
and
9 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
EMS/admin-ui-bundle/assets/js/core/events/formFailEvent.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export const EMS_FORM_FAIL_EVENT_EVENT = 'emsFormFailEvent' | ||
export class FormFailEvent { | ||
constructor (form, response) { | ||
this._form = form | ||
|
||
this._event = new CustomEvent(EMS_FORM_FAIL_EVENT_EVENT, { | ||
detail: { | ||
form, | ||
response | ||
} | ||
}) | ||
} | ||
|
||
dispatch () { | ||
if (undefined === this._form) { | ||
return | ||
} | ||
this._form.dispatchEvent(this._event) | ||
} | ||
} | ||
export default FormFailEvent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
EMS/core-bundle/src/Resources/translations/validators.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters