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

Style: Use `#none?` instead of `#empty?`

Aaron Contrerase1c2c3bfb16c
diff --git a/app/components/work_packages/share/modal_body_component.html.erb b/app/components/work_packages/share/modal_body_component.html.erb
index 089ca4f2c04..cac0f6c2b03 100644
--- a/app/components/work_packages/share/modal_body_component.html.erb
+++ b/app/components/work_packages/share/modal_body_component.html.erb
@@ -9,15 +9,16 @@
end
end
- if shared_users.empty?
- modal_content.with_row(mt: 3) do
- render(Primer::Beta::Blankslate.new(border: true)) do |component|
- component.with_visual_icon(icon: :people, size: :medium)
- component.with_heading(tag: :h2).with_content(I18n.t('work_package.sharing.text_empty_state_header') )
- component.with_description do
- flex_layout do |flex|
- flex.with_row(mb: 2) do
- render(Primer::Beta::Text.new(color: :subtle)) { I18n.t('work_package.sharing.text_empty_state_description') }
+ if shared_users.none?
+ modal_content.with_row(mt: 3) do
+ render(Primer::Beta::Blankslate.new(border: true)) do |component|
+ component.with_visual_icon(icon: :people, size: :medium)
+ component.with_heading(tag: :h2).with_content(I18n.t('work_package.sharing.text_empty_state_header') )
+ component.with_description do
+ flex_layout do |flex|
+ flex.with_row(mb: 2) do
+ render(Primer::Beta::Text.new(color: :subtle)) { I18n.t('work_package.sharing.text_empty_state_description') }
+ end
end
end
end