Skip to content

Commit

Permalink
Review response: add needs :@widgetsets
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila Vecerek committed Mar 6, 2017
1 parent 6a2b126 commit 06be9b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/application_helper/button/db_seq_edit.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class ApplicationHelper::Button::DbSeqEdit < ApplicationHelper::Button::Basic
needs :@widgetsets

def disabled?
@error_message = _('There should be at least 2 Dashboards to Edit Sequence') if @widgetsets.length <= 1
@error_message.present?
Expand Down

0 comments on commit 06be9b1

Please sign in to comment.