-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
119915: Extracted the authority/controlled vocabulary logic out of Ds…
…oEditMetadataValueComponent Also: - Converted the code to the standalone structure - Made DsoEditMetadataValueFieldLoaderComponent extend AbstractComponentLoaderComponent
- Loading branch information
1 parent
017e49a
commit 33bdb69
Showing
22 changed files
with
905 additions
and
846 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...-field/dso-edit-metadata-authority-field/dso-edit-metadata-authority-field.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<ds-dynamic-scrollable-dropdown *ngIf="mdValue.editing && (isScrollableVocabulary$ | async)" | ||
[bindId]="mdField" | ||
[group]="group" | ||
[model]="getModel()" | ||
(change)="onChangeAuthorityField($event)"> | ||
</ds-dynamic-scrollable-dropdown> | ||
<ds-dynamic-onebox | ||
*ngIf="mdValue.editing && ((isHierarchicalVocabulary$ | async) || (isSuggesterVocabulary$ | async))" | ||
[group]="group" | ||
[model]="getModel()" | ||
(change)="onChangeAuthorityField($event)"> | ||
</ds-dynamic-onebox> | ||
<div class="mt-2" *ngIf=" mdValue.editing && (isAuthorityControlled$ | async) && (isSuggesterVocabulary$ | async)"> | ||
<div class="btn-group w-75"> | ||
<i dsAuthorityConfidenceState | ||
class="fas fa-fw p-0 mr-1 mt-auto mb-auto" | ||
aria-hidden="true" | ||
[authorityValue]="mdValue.newValue.confidence" | ||
[iconMode]="true" | ||
></i> | ||
<input class="form-control form-outline" data-test="authority-input" [(ngModel)]="mdValue.newValue.authority" | ||
[disabled]="!editingAuthority" | ||
[attr.aria-label]="(dsoType + '.edit.metadata.edit.authority.key') | translate" | ||
(change)="onChangeAuthorityKey()"/> | ||
<button class="btn btn-outline-secondary btn-sm ng-star-inserted" id="metadata-confirm-btn" | ||
*ngIf="!editingAuthority" | ||
[title]="dsoType + '.edit.metadata.edit.buttons.open-authority-edition' | translate" | ||
ngbTooltip="{{ dsoType + '.edit.metadata.edit.buttons.open-authority-edition' | translate }}" | ||
(click)="onChangeEditingAuthorityStatus(true)"> | ||
<i class="fas fa-lock fa-fw"></i> | ||
</button> | ||
<button class="btn btn-outline-success btn-sm ng-star-inserted" id="metadata-confirm-btn" *ngIf="editingAuthority" | ||
[title]="dsoType + '.edit.metadata.edit.buttons.close-authority-edition' | translate" | ||
ngbTooltip="{{ dsoType + '.edit.metadata.edit.buttons.close-authority-edition' | translate }}" | ||
(click)="onChangeEditingAuthorityStatus(false)"> | ||
<i class="fas fa-lock-open fa-fw"></i> | ||
</button> | ||
</div> | ||
</div> |
Empty file.
Oops, something went wrong.