Skip to content

Commit

Permalink
Utiliser le UUID pour affiche le détails des acteurs digitaux (#1113)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok authored Dec 9, 2024
1 parent 6fcb4f7 commit ee871df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jinja2/qfdmo/carte/_digital_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div data-action="click->search-solution-form#displayDigitalActeur
keydown.enter->search-solution-form#displayDigitalActeur
keydown.space->search-solution-form#displayDigitalActeur"
data-identifiant-unique="{{ adresse.identifiant_unique }}"
data-uuid="{{ adresse.uuid }}"
class="qf-cursor-pointer qf-rounded qf-border-solid qf-border qf-border-light-gray qf-content-start fr-p-1w fr-mb-1w
{{ loop.cycle('qf-bg-grey-975','qf-bg-grey-950') }}
qf-flex qf-flex-col"
Expand Down
4 changes: 2 additions & 2 deletions static/to_compile/js/search_solution_form_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export default class extends Controller<HTMLElement> {
}

displayDigitalActeur(event) {
const identifiantUnique = event.currentTarget.dataset.identifiantUnique
window.location.hash = identifiantUnique
const uuid = event.currentTarget.dataset.uuid
window.location.hash = uuid
document
.querySelector("[aria-controls='acteurDetailsPanel'][aria-expanded='true']")
?.setAttribute("aria-expanded", "false")
Expand Down

0 comments on commit ee871df

Please sign in to comment.