mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-22 08:08:01 +00:00
adds styling to owner list component. small updates
This commit is contained in:
parent
5e51805584
commit
55d38d3bbf
@ -9,8 +9,17 @@ const {
|
||||
inject: { service }
|
||||
} = Ember;
|
||||
|
||||
/**
|
||||
* Array of source names to restrict from user updates
|
||||
* @type {[String]}
|
||||
*/
|
||||
const restrictedSources = ['SCM', 'NUAGE'];
|
||||
const restrictedSourcesPattern = new RegExp(`.*${restrictedSources.join('|')}.*`, 'ig');
|
||||
/**
|
||||
* Pattern to look for in source strings
|
||||
* Will case-insensitive find strings containing `scm` or `nuage`
|
||||
* @type {RegExp}
|
||||
*/
|
||||
const restrictedSourcesPattern = new RegExp(`.*${restrictedSources.join('|')}.*`, 'i');
|
||||
const removeFromSourceMessage = `Owners sourced from ${restrictedSources.join(', ')} should be removed directly from that source`;
|
||||
|
||||
// Class to toggle readonly mode vs edit mode
|
||||
|
@ -63,7 +63,8 @@ $color-scheme: (
|
||||
),
|
||||
white: (
|
||||
base: rgb(255, 255, 255),
|
||||
catskill: rgb(243, 247, 249)
|
||||
catskill: rgb(243, 247, 249),
|
||||
earlydawn:rgb(255, 249, 232)
|
||||
)
|
||||
);
|
||||
|
||||
|
@ -15,6 +15,8 @@
|
||||
margin: 0 5px 5px 0;
|
||||
line-height: 1.5;
|
||||
border: 1px solid set-color(grey, mid);
|
||||
background-color: set-color(white, earlydawn);
|
||||
border-radius: 2px;
|
||||
font-weight: fw(normal, 4);
|
||||
}
|
||||
}
|
||||
|
@ -82,8 +82,7 @@
|
||||
onclick={{action "willEditUserName"
|
||||
owner}}>
|
||||
|
||||
<label class={{if (contains owner.source restrictedSources) ""
|
||||
"dataset-author-cell__name-tag"}}>
|
||||
<label class={{if (contains owner.source restrictedSources) "" "dataset-author-cell__name-tag"}}>
|
||||
{{owner.userName}}
|
||||
</label>
|
||||
{{aupac-typeahead
|
||||
|
Loading…
x
Reference in New Issue
Block a user