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, Domain.LMS_SETUP.ATTR_NAME,
NAME_TEXT_KEY, NAME_TEXT_KEY,
LmsSetup::getName) LmsSetup::getName)
.withFilter((isSEBAdmin) ? this.nameFilter : null) .withFilter(this.nameFilter)
.sortable()) .sortable())
.withColumn(new ColumnDefinition<>( .withColumn(new ColumnDefinition<>(
Domain.LMS_SETUP.ATTR_LMS_TYPE, Domain.LMS_SETUP.ATTR_LMS_TYPE,
TYPE_TEXT_KEY, TYPE_TEXT_KEY,
this::lmsSetupTypeName) this::lmsSetupTypeName)
.withFilter((isSEBAdmin) ? this.typeFilter : null) .withFilter(this.typeFilter)
.localized() .localized()
.sortable()) .sortable())

View file

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