mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Fix fontawesome icons
This commit is contained in:
@@ -56,15 +56,13 @@ module.exports = {
|
||||
* {
|
||||
* // NOTE: metadata name
|
||||
* name: 'dc.author',
|
||||
* // NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
|
||||
* // NOTE: fontawesome (v5.x) icon classes and bootstrap utility classes can be used
|
||||
* style: 'fa-user'
|
||||
* }
|
||||
*/
|
||||
{
|
||||
// NOTE: metadata name
|
||||
name: 'dc.author',
|
||||
// NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
|
||||
style: 'fa-user'
|
||||
style: 'fas fa-user'
|
||||
},
|
||||
// default configuration
|
||||
{
|
||||
|
@@ -20,13 +20,13 @@
|
||||
[ngClass]="{'chip-selected disabled': (editable && c.editMode) || dragged == i}"
|
||||
(click)="chipsSelected($event, i);">
|
||||
<span>
|
||||
<i *ngIf="showIcons && !c.isNestedItem()" dsAuthorityConfidenceState [authorityValue]="c.item" class="fa fa-circle-o" aria-hidden="true"></i>
|
||||
<ng-container *ngIf="showIcons && c.hasIcons()">
|
||||
<i *ngIf="showIcons && !c.isNestedItem()" dsAuthorityConfidenceState [authorityValue]="c.item" class="far fa-circle" aria-hidden="true"></i>
|
||||
<ng-container *ngIf="showIcons && c.hasVisibleIcons()">
|
||||
<i *ngFor="let icon of c.icons; let l = last"
|
||||
[ngbTooltip]="tipContent"
|
||||
triggers="manual"
|
||||
#t="ngbTooltip"
|
||||
class="fas {{icon.style}}"
|
||||
class="{{icon.style}}"
|
||||
[class.mr-1]="!l"
|
||||
[class.mr-2]="l"
|
||||
dsAuthorityConfidenceState
|
||||
|
@@ -63,8 +63,9 @@ export class ChipsItem {
|
||||
&& (((typeof this._item[icon.metadata] === 'string') && hasValue(this._item[icon.metadata]))
|
||||
|| (this._item[icon.metadata] as FormFieldMetadataValueObject).hasValue())
|
||||
&& !(this._item[icon.metadata] as FormFieldMetadataValueObject).hasPlaceholder()) {
|
||||
if (icon.visibleWhenAuthorityEmpty
|
||||
|| (this._item[icon.metadata] as FormFieldMetadataValueObject).confidence !== ConfidenceType.CF_UNSET) {
|
||||
if ((icon.visibleWhenAuthorityEmpty
|
||||
|| (this._item[icon.metadata] as FormFieldMetadataValueObject).confidence !== ConfidenceType.CF_UNSET)
|
||||
&& isNotEmpty(icon.style)) {
|
||||
hasVisible = true;
|
||||
break;
|
||||
}
|
||||
|
@@ -45,6 +45,6 @@
|
||||
(keydown)="preventEventsPropagation($event)"
|
||||
(keyup)="onKeyUp($event)"
|
||||
#instance="ngbTypeahead"/>
|
||||
<i *ngIf="searching" class="far fa-circle fa-spin fa-2x fa-fw text-primary position-absolute mt-1 p-0" aria-hidden="true"></i>
|
||||
<i *ngIf="searching" class="fas fa-circle-notch fa-spin fa-2x fa-fw text-primary position-absolute mt-1 p-0" aria-hidden="true"></i>
|
||||
</ds-chips>
|
||||
|
||||
|
Reference in New Issue
Block a user