Skip to content

Commit

Permalink
linting and changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
lagartoverde committed Jan 29, 2025
1 parent 20d7514 commit 784bd07
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-toes-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'frontend-gelinkt-notuleren': patch
---

Fix rb copy parts in ember 5
4 changes: 0 additions & 4 deletions app/components/copy-parts/section.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ import { inject as service } from '@ember/service';
import { concat } from '@ember/helper';
import update from 'frontend-gelinkt-notuleren/utils/copy-parts-update';

function htmlSafer(text) {
return htmlSafe(text);
}

function getDestinationElement(content) {
return document.getElementById(content.replaceId);
}
Expand Down
2 changes: 1 addition & 1 deletion app/templates/regulatory-statements/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
role='menuitem'
>
<AuIcon @icon='copy' @alignment='left' />
{{t 'regulatory-statements.copy-parts-link'}}
{{t 'regulatory-statement.copy-parts-link'}}
</AuLink>
</AuDropdown>
<AuButton
Expand Down
1 change: 0 additions & 1 deletion app/utils/copy-parts-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,5 @@ export default function update(sectionContent, level, intl) {
let outerHTML = parsed.firstElementChild.outerHTML;
outerHTML = outerHTML.replace('<html><head></head><body>', '');
outerHTML = outerHTML.replace('</body></html>', '');
const outerHTMLSplited = outerHTML.split('say-rb-copy-replace-by');
return { html: outerHTML, sections: mappedSections };
}

0 comments on commit 784bd07

Please sign in to comment.