fixed some minor issues
This commit is contained in:
parent
3f7b8eec9b
commit
4c920728ae
@ -78,7 +78,6 @@
|
||||
(action)="saveEntries()"
|
||||
text="dictionary-overview.save-changes"
|
||||
[primary]="true"
|
||||
[disabled]="hasErrors"
|
||||
></redaction-icon-button>
|
||||
<redaction-icon-button
|
||||
*ngIf="permissionsService.isAdmin()"
|
||||
|
||||
@ -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) => {
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user