Skip to content

Commit

Permalink
library: fix communication language on add
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Oct 9, 2023
1 parent e4a1e13 commit 089740e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--
RERO ILS UI
Copyright (C) 2019-2022 RERO
Copyright (C) 2019-2023 RERO
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
Expand Down Expand Up @@ -182,7 +182,7 @@ <h1 translate>Library</h1>
<div class="d-flex align-items-center w-100">
<i class="fa fa-exclamation-triangle"></i>
{{ 'Exception dates' | translate }}
<span class="badge badge-primary ml-auto">{{ library.exception_dates.length }}</span>
<span class="badge badge-primary ml-auto">{{ library?.exception_dates?.length || '0' }}</span>
</div>
</ng-template>
<ng-template pTemplate="content">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ export class LibraryComponent extends AbstractCanDeactivateComponent implements
this.library = new Library(record.metadata);
this.libraryForm.populate(record.metadata);
this.libForm = this.libraryForm.form;
this._buildOptions();
this.setAsyncValidator();
});
} else {
this.library = new Library({});
this.libForm = this.libraryForm.form;
this.setAsyncValidator();
}
this._buildOptions();
});
});
}
Expand Down

0 comments on commit 089740e

Please sign in to comment.