aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/decorators/line_decorator.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/decorators/line_decorator.rb b/app/decorators/line_decorator.rb
index 039ad90a3..0e7b6b9ae 100644
--- a/app/decorators/line_decorator.rb
+++ b/app/decorators/line_decorator.rb
@@ -20,6 +20,7 @@ class LineDecorator < AF83::Decorator
instance_decorator.action_link secondary: :show do |l|
l.content t('lines.actions.show_network')
l.href { [scope, object.network] }
+ l.disabled { object.network.nil? }
end
instance_decorator.action_link secondary: :show do |l|