File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,9 @@ angular.module('kubernetesUI')
4949 // Creates the filtering widget input inside of filterInputElement
5050 // Creates the filtering widget active filters boxes inside of activeFiltersElement
5151 // filterInputElement and activeFiltersElement should be empty HTML nodes
52- LabelFilter . prototype . setupFilterWidget = function ( filterInputElement , activeFiltersElement ) {
52+ LabelFilter . prototype . setupFilterWidget = function ( filterInputElement , activeFiltersElement , opts ) {
5353 var self = this ;
54+ var opts = opts || { } ;
5455
5556 this . _labelFilterRootElement = filterInputElement ;
5657 this . _labelFilterActiveFiltersRootElement = activeFiltersElement ;
@@ -82,13 +83,9 @@ angular.module('kubernetesUI')
8283 . addClass ( "label-filter-add btn btn-default btn-lg disabled" )
8384 . attr ( "disabled" , true )
8485 . appendTo ( filterInputElement )
85- . append (
86- $ ( '<i>' )
87- . addClass ( "fa fa-plus" )
88- )
8986 . append (
9087 $ ( '<span>' )
91- . text ( " Filter")
88+ . text ( opts . addButtonText || "Add Filter")
9289 ) ;
9390
9491 // Render active filters area
You can’t perform that action at this time.
0 commit comments