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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#46336] add correct css to revit menu button
Eric Schubert7570fe5cf249
diff --git a/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts b/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.tsindex 12f353c3617..96fa80c905b 100644--- a/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts+++ b/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts@@ -1,4 +1,33 @@-import { Injectable, Injector } from '@angular/core';+// -- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2023 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See COPYRIGHT and LICENSE files for more details.+//++++import { Injectable } from '@angular/core';+import { I18nService } from 'core-app/core/i18n/i18n.service';/*@@ -11,8 +40,9 @@ export class RevitAddInSettingsButtonService {private readonly groupLabelText:string;- constructor(readonly injector:Injector,- readonly i18n:I18nService) {+ constructor(+ private readonly i18n:I18nService,+ ) {const onRevitAddInEnvironment = window.navigator.userAgent.search('Revit') > -1;if (onRevitAddInEnvironment) {@@ -31,7 +61,7 @@ export class RevitAddInSettingsButtonService {const menuItem:HTMLElement = document.createElement('li');menuItem.dataset.name = this.labelText;menuItem.innerHTML = `- <a class="revit-addin-settings-menu-item ellipsis" title="${this.labelText}" href="#">+ <a class="op-menu--item-action revit-addin-settings-menu-item ellipsis" title="${this.labelText}" href="#"><span class="menu-item--title ellipsis ">${this.labelText}</span></a>`;@@ -65,8 +95,7 @@ export class RevitAddInSettingsButtonService {loginModal.appendChild(loginMenuItem);const settingsButton = loginModal.querySelector('.revit-add-in-button');-- settingsButton!.addEventListener('click', () => this.goToSettings());+ settingsButton?.addEventListener('click', () => this.goToSettings());}}