mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-11 03:53:02 +00:00
Add a new mode to AuthorityConfidenceStateDirective to configure use fontawesome icons instead of class defined in style property
This commit is contained in:
@@ -164,7 +164,7 @@ export class DefaultAppConfig implements AppConfig {
|
||||
* {
|
||||
* // NOTE: metadata name
|
||||
* name: 'dc.author',
|
||||
* // NOTE: fontawesome (v5.x) icon classes and bootstrap utility classes can be used
|
||||
* // NOTE: fontawesome (v6.x) icon classes and bootstrap utility classes can be used
|
||||
* style: 'fa-user'
|
||||
* }
|
||||
*/
|
||||
@@ -184,27 +184,59 @@ export class DefaultAppConfig implements AppConfig {
|
||||
* NOTE: example of configuration
|
||||
* {
|
||||
* // NOTE: confidence value
|
||||
* value: 'dc.author',
|
||||
* // NOTE: fontawesome (v4.x) icon classes and bootstrap utility classes can be used
|
||||
* style: 'fa-user'
|
||||
* value: 100,
|
||||
* // NOTE: fontawesome (v6.x) icon classes and bootstrap utility classes can be used
|
||||
* style: 'text-success',
|
||||
* icon: 'fa-circle-check'
|
||||
* // NOTE: the class configured in property style is used by default, the icon property could be used in component
|
||||
* // configured to use a 'icon mode' display (mainly in edit-item page)
|
||||
* }
|
||||
*/
|
||||
{
|
||||
value: 600,
|
||||
style: 'text-success'
|
||||
style: 'text-success',
|
||||
icon: 'fa-circle-check'
|
||||
},
|
||||
{
|
||||
value: 500,
|
||||
style: 'text-info'
|
||||
style: 'text-info',
|
||||
icon: 'fa-gear'
|
||||
},
|
||||
{
|
||||
value: 400,
|
||||
style: 'text-warning'
|
||||
style: 'text-warning',
|
||||
icon: 'fa-circle-question'
|
||||
},
|
||||
{
|
||||
value: 300,
|
||||
style: 'text-muted',
|
||||
icon: 'fa-circle-question'
|
||||
},
|
||||
{
|
||||
value: 200,
|
||||
style: 'text-muted',
|
||||
icon: 'fa-circle-exclamation'
|
||||
},
|
||||
{
|
||||
value: 100,
|
||||
style: 'text-muted',
|
||||
icon: 'fa-circle-stop'
|
||||
},
|
||||
{
|
||||
value: 0,
|
||||
style: 'text-muted',
|
||||
icon: 'fa-ban'
|
||||
},
|
||||
{
|
||||
value: -1,
|
||||
style: 'text-muted',
|
||||
icon: 'fa-circle-xmark'
|
||||
},
|
||||
// default configuration
|
||||
{
|
||||
value: 'default',
|
||||
style: 'text-muted'
|
||||
style: 'text-muted',
|
||||
icon: 'fa-circle-xmark'
|
||||
}
|
||||
|
||||
]
|
||||
|
Reference in New Issue
Block a user