fixed some minor issues

This commit is contained in:
Timo 2020-12-07 15:37:32 +02:00
parent 3f7b8eec9b
commit 4c920728ae
4 changed files with 6 additions and 6 deletions

View File

@ -78,7 +78,6 @@
(action)="saveEntries()"
text="dictionary-overview.save-changes"
[primary]="true"
[disabled]="hasErrors"
></redaction-icon-button>
<redaction-icon-button
*ngIf="permissionsService.isAdmin()"

View File

@ -166,10 +166,6 @@ export class DictionaryOverviewScreenComponent {
);
}
get hasErrors(): boolean {
return this.currentDictionaryEntries.filter((e) => e.length < DictionaryOverviewScreenComponent.MIN_WORD_LENGTH).length > 0;
}
async saveEntries() {
let entriesToAdd = [];
this.currentDictionaryEntries.forEach((currentEntry) => {

View File

@ -192,6 +192,11 @@
</div>
</div>
<!-- always show A for error-->
<div *ngIf="fileStatus.isError">
<redaction-annotation-icon type="square" label="A" color="#dd4d50"></redaction-annotation-icon>
</div>
<div *ngIf="!fileStatus.isError">
<redaction-needs-work-badge [needsWorkInput]="fileStatus"></redaction-needs-work-badge>
</div>

View File

@ -36,7 +36,7 @@ redaction-table-col-name::ng-deep {
}
.extend-cols {
grid-column-end: span 4;
grid-column-end: span 3;
align-items: flex-end;
}