filter fixes

This commit is contained in:
anhefti 2019-08-07 15:51:47 +02:00
parent 24c3d31e58
commit d1f0d948a0
2 changed files with 2 additions and 7 deletions

View file

@ -128,13 +128,13 @@ public class LmsSetupList implements TemplateComposer {
Domain.LMS_SETUP.ATTR_NAME,
NAME_TEXT_KEY,
LmsSetup::getName)
.withFilter((isSEBAdmin) ? this.nameFilter : null)
.withFilter(this.nameFilter)
.sortable())
.withColumn(new ColumnDefinition<>(
Domain.LMS_SETUP.ATTR_LMS_TYPE,
TYPE_TEXT_KEY,
this::lmsSetupTypeName)
.withFilter((isSEBAdmin) ? this.typeFilter : null)
.withFilter(this.typeFilter)
.localized()
.sortable())

View file

@ -238,11 +238,6 @@ public class TableFilter<ROW extends Entity> {
return this;
}
@Override
boolean adaptWidth(final int width) {
return super.adaptWidth(width - 2 * CELL_WIDTH_ADJUSTMENT);
}
@Override
FilterComponent reset() {
return this;