Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

eslint

Ivan Kuchine82d1011dcf5
diff --git a/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts b/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
index 23f422e9e89..6219555f9bd 100644
--- a/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
+++ b/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
@@ -31,7 +31,6 @@ import { DOCUMENT } from '@angular/common';
import { OpModalService } from 'core-app/shared/components/modal/modal.service';
import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';
import { InviteUserModalComponent } from './invite-user.component';
-import ClickEvent = JQuery.ClickEvent;
const attributeName = 'invite-user-modal-augment';
@@ -51,7 +50,7 @@ export class OpInviteUserModalAugmentService {
* Create initial listeners for Rails-rendered modals
*/
public setupListener() {
- const matches = this.documentElement.querySelectorAll('[' + attributeName + ']');
+ const matches = this.documentElement.querySelectorAll(`[${attributeName}]`);
for (let i = 0; i < matches.length; ++i) {
const el = matches[i] as HTMLElement;
el.addEventListener('click', this.spawnModal.bind(this));