mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Secondary button can actually be disabled
This commit is contained in:
@@ -3,4 +3,4 @@
|
||||
{{ enterprise.name }}
|
||||
= "{{ enterprise.issues_summary_#{type} ? '('+enterprise.issues_summary_#{type}+')' : '' }}"
|
||||
|
||||
= f.submit t(".add_#{type}"), 'ng-click' => "add#{type.capitalize}($event)", 'ng-disabled' => "!new_#{type}_id || !OrderCycle.novel#{type.capitalize}(new_#{type}_id)"
|
||||
= f.submit t(".add_#{type}"), 'ng-click' => "add#{type.capitalize}($event)", 'ng-disabled' => "!new_#{type}_id || !OrderCycle.novel#{type.capitalize}(new_#{type}_id)", "class": "secondary"
|
||||
|
||||
@@ -26,10 +26,20 @@ fieldset .filter-actions .button:hover,
|
||||
}
|
||||
|
||||
&.disabled,
|
||||
&[disabled] {
|
||||
&[disabled],
|
||||
&.disabled.secondary,
|
||||
&[disabled].secondary {
|
||||
@include backgroundAndBorder($v2-dark-light-grey);
|
||||
box-shadow: none;
|
||||
cursor: default;
|
||||
color: white;
|
||||
|
||||
&:hover {
|
||||
@include backgroundAndBorder($v2-dark-light-grey);
|
||||
box-shadow: none;
|
||||
cursor: default;
|
||||
color: white;
|
||||
}
|
||||
}
|
||||
|
||||
&.secondary,
|
||||
|
||||
Reference in New Issue
Block a user