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
properly use stimulus data loading
ulfertsfe094a826feb
diff --git a/app/views/roles/_form.html.erb b/app/views/roles/_form.html.erbindex bcabb9606b1..c1a46e343a4 100644--- a/app/views/roles/_form.html.erb+++ b/app/views/roles/_form.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.<div data-controller="admin-roles"data-application-target="dynamic"- data-loader-global-role-value="<%= role.is_a?(GlobalRole) %>">+ data-admin-roles-global-role-value="<%= role.is_a?(GlobalRole) %>"><div class="form--field -required"><%= f.text_field :name, required: true, container_class: '-slim' %></div>diff --git a/frontend/src/stimulus/controllers/dynamic/meeting-content.controller.ts b/frontend/src/stimulus/controllers/dynamic/meeting-content.controller.tsindex 53c7ccb8cb9..6ec29d440b4 100644--- a/frontend/src/stimulus/controllers/dynamic/meeting-content.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/meeting-content.controller.ts@@ -38,18 +38,6 @@ export default class MeetingContentController extends Controller {'editButton',];- initialize() {- // This should have been achieved by the `data-loader-edit-state-value` attribute, but for unknown reasons- // this does not apply the value to the variable. Doing it manually for now.- const rawInitialValue = this.element.getAttribute('data-loader-edit-state-value');-- if (rawInitialValue === 'true') {- this.editStateValue = true;- } else if (rawInitialValue === 'false') {- this.editStateValue = false;- }- }-static values = {editState: { type: Boolean, default: false },};diff --git a/modules/meeting/app/views/meeting_contents/_show.html.erb b/modules/meeting/app/views/meeting_contents/_show.html.erbindex bd2e6d5de1a..56d1e18d5a5 100644--- a/modules/meeting/app/views/meeting_contents/_show.html.erb+++ b/modules/meeting/app/views/meeting_contents/_show.html.erb@@ -34,7 +34,7 @@ See COPYRIGHT and LICENSE files for more details.<div data-controller="meeting-content"data-application-target="dynamic"- data-loader-edit-state-value="<%= show_meeting_content_editor?(content, content_type) %>"+ data-meeting-content-edit-state-value="<%= show_meeting_content_editor?(content, content_type) %>"><div><%= toolbar title: t(:"label_#{content_type}") do %>