* Hide button when hasn't filter.
This commit is contained in:
@@ -64,7 +64,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $metric, $metricID)
|
||||
(
|
||||
set::width('full'),
|
||||
$formGroups,
|
||||
formGroup
|
||||
!empty($formGroups) ? formGroup
|
||||
(
|
||||
setClass('query-btn'),
|
||||
btn
|
||||
@@ -73,7 +73,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $metric, $metricID)
|
||||
set::text($this->lang->metric->query->action),
|
||||
set::onclick("window.handleQueryClick($metricID, 'multiple')")
|
||||
)
|
||||
)
|
||||
) : null
|
||||
),
|
||||
set::actions(array())
|
||||
);
|
||||
|
||||
@@ -274,7 +274,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $current)
|
||||
(
|
||||
set::width('full'),
|
||||
$formGroups,
|
||||
formGroup
|
||||
!empty($formGroups) ? formGroup
|
||||
(
|
||||
setClass('query-btn'),
|
||||
btn
|
||||
@@ -283,7 +283,7 @@ $fnGenerateQueryForm = function() use($metricRecordType, $current)
|
||||
set::text($this->lang->metric->query->action),
|
||||
set::onclick("window.handleQueryClick($current->id, 'multiple')")
|
||||
)
|
||||
)
|
||||
) : null
|
||||
),
|
||||
set::actions(array())
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user