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

[38365] Fix display of broken backend notification settings

Oliver Günther4c635c72b001
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.html b/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.html
index f9e7e2bdccb..03c97f1a97e 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.html
@@ -1,6 +1,6 @@
<td
*ngIf="first"
- rowspan="3"
+ [attr.rowspan]="count"
>
<span
*ngIf="setting._links.project.href; else defaultTitle"
@@ -53,7 +53,7 @@
</td>
<td
*ngIf="first"
- rowspan="3"
+ [attr.rowspan]="count"
class="buttons"
>
<button
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.ts b/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.ts
index 0a7b5ce896e..856c6c8060f 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.ts
+++ b/frontend/src/app/features/user-preferences/notifications-settings/row/notification-setting-row.component.ts
@@ -7,6 +7,7 @@ import { NotificationSetting } from 'core-app/features/user-preferences/state/no
import { UserPreferencesStore } from 'core-app/features/user-preferences/state/user-preferences.store';
@Component({
+ // eslint-disable-next-line @angular-eslint/component-selector
selector: '[op-notification-setting-row]',
templateUrl: './notification-setting-row.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -14,6 +15,8 @@ import { UserPreferencesStore } from 'core-app/features/user-preferences/state/u
export class NotificationSettingRowComponent implements OnInit {
@Input() first = false;
+ @Input() count:number;
+
@Input() setting:NotificationSetting;
/** Whether this setting is global */
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html
index bfb7ebdf6bd..30284ea1150 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/table/notification-settings-table.component.html
@@ -62,6 +62,7 @@
op-notification-setting-row
[attr.data-qa-notification-project]="item.key"
[attr.data-qa-notification-channel]="setting.channel"
+ [count]="item.value.length"
[first]="first"
[setting]="setting"
>