Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions labelFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ angular.module('kubernetesUI')
// Creates the filtering widget input inside of filterInputElement
// Creates the filtering widget active filters boxes inside of activeFiltersElement
// filterInputElement and activeFiltersElement should be empty HTML nodes
LabelFilter.prototype.setupFilterWidget = function(filterInputElement, activeFiltersElement) {
LabelFilter.prototype.setupFilterWidget = function(filterInputElement, activeFiltersElement, opts) {
var self = this;
var opts = opts || {};

this._labelFilterRootElement = filterInputElement;
this._labelFilterActiveFiltersRootElement = activeFiltersElement;
Expand Down Expand Up @@ -82,13 +83,9 @@ angular.module('kubernetesUI')
.addClass("label-filter-add btn btn-default btn-lg disabled")
.attr("disabled", true)
.appendTo(filterInputElement)
.append(
$('<i>')
.addClass("fa fa-plus")
)
.append(
$('<span>')
.text(" Filter")
.text(opts.addButtonText || "Add Filter")
);

// Render active filters area
Expand Down