Skip to content

Commit 81dabf7

Browse files
committed
fix: dbp-modal name
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
1 parent e7c50d6 commit 81dabf7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
- Don't try to open the webpage, the page is behind an SSO login, so you won't be able to access it.
88
- If you can use existing dbp-icons, use them instead of creating new icons.
99
- Everything needs to be properly translated with i18next.
10-
- For dialogs always use dbp-dialog.
10+
- For dialogs always use dbp-modal.

src/dbp-bulletin-create-job-offer-dialog.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class CreateJobOfferDialog extends ScopedElementsMixin(DBPBulletinLitElem
1515
static get scopedElements() {
1616
return {
1717
'dbp-icon': Icon,
18-
'dbp-dialog': Modal,
18+
'dbp-modal': Modal,
1919
'dbp-string-element': DbpStringElement,
2020
'dbp-date-element': DbpDateElement,
2121
'dbp-enum-element': DbpEnumElement,
@@ -64,15 +64,15 @@ export class CreateJobOfferDialog extends ScopedElementsMixin(DBPBulletinLitElem
6464
this._formJobType = '';
6565
this._formAreaOfInterest = '';
6666

67-
const dialog = this._('dbp-dialog');
67+
const dialog = this._('dbp-modal');
6868
if (dialog) {
6969
dialog.open();
7070
}
7171
}
7272

7373
/** Closes the dialog. */
7474
close() {
75-
const dialog = this._('dbp-dialog');
75+
const dialog = this._('dbp-modal');
7676
if (dialog) {
7777
dialog.close();
7878
}
@@ -151,7 +151,7 @@ export class CreateJobOfferDialog extends ScopedElementsMixin(DBPBulletinLitElem
151151
const t = (key) => (i18n ? i18n.t(key) : key);
152152

153153
return html`
154-
<dbp-dialog
154+
<dbp-modal
155155
modal-id="create-job-offer-dialog"
156156
lang="${this.lang}"
157157
sticky-footer
@@ -300,7 +300,7 @@ export class CreateJobOfferDialog extends ScopedElementsMixin(DBPBulletinLitElem
300300
@change="${(e) =>
301301
(this._formAreaOfInterest = e.detail.value)}"></dbp-enum-element>
302302
</div>
303-
</dbp-dialog>
303+
</dbp-modal>
304304
`;
305305
}
306306

0 commit comments

Comments
 (0)