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

[stimulus] Duplicate definition of Stimulus Value "notificationCenterPathName".

Kabiru Mwenja9c9b2f2f9016
diff --git a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
index 69f8d6af2a2..4e8d3079979 100644
--- a/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/work-packages/activities-tab/index.controller.ts
@@ -48,18 +48,20 @@ interface CustomEventWithIdParam extends Event {
}
export default class IndexController extends BaseController {
- static values = {
- updateStreamsPath: String,
- sorting: String,
- pollingIntervalInMs: Number,
- filter: String,
- userId: Number,
- workPackageId: Number,
- notificationCenterPathName: { type: String, default: '/notifications' },
- lastServerTimestamp: String,
- showConflictFlashMessageUrl: String,
- unsavedChangesConfirmationMessage: String,
- };
+ static get values() {
+ return {
+ ...super.values,
+ updateStreamsPath: String,
+ sorting: String,
+ pollingIntervalInMs: Number,
+ filter: String,
+ userId: Number,
+ workPackageId: Number,
+ lastServerTimestamp: String,
+ showConflictFlashMessageUrl: String,
+ unsavedChangesConfirmationMessage: String,
+ };
+ }
static targets = ['journalsContainer', 'buttonRow', 'formRow', 'form', 'formSubmitButton', 'reactionButton'];