Skip to content

Commit

Permalink
Add at icon and reference main field in source label
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromml committed Jun 13, 2024
1 parent 54811c8 commit cfc1ef2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ en:
edtf_label: Extended Date/Time Format
edtf_placeholder: 1849~, 1804?, 189X, 1906/1908, 1814-23, 1960-05-01T13:00...
field_source: Add Source
field_source_label: Source
field_source_label: Source for {field_name}
field_source_placeholder: URL, newspaper article, book...
max_length_reached: "This string is longer than the maximum length of {maxChars} characters. Anything exceeding that length will be truncated."
set_today: "Sets the value to today."
Expand Down
4 changes: 2 additions & 2 deletions modules/ui/source_subfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function uiSourceSubfield(field, tags, dispatch) {
text
.append('span')
.attr('class', 'label-textvalue')
.call(t.append('inspector.field_source_label'));
.call(t.append('inspector.field_source_label', { field_name: field.title }));

text
.append('span')
Expand Down Expand Up @@ -146,7 +146,7 @@ export function uiSourceSubfield(field, tags, dispatch) {
.attr('class', 'source-icon')
.attr('title', 'source-button')
.call(sourceButtonTip)
.call(svgIcon('#fas-book'));
.call(svgIcon('#fas-at', 'inline'));

container.select('.field-label > .source-icon') // propagate bound data
.on('click', addSource);
Expand Down
3 changes: 2 additions & 1 deletion scripts/build_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ function buildData() {
'fas-th-list',
'fas-user-cog',
'fas-calendar-days',
'fas-rotate'
'fas-rotate',
'fas-at'
]);
// add icons for QA integrations
readQAIssueIcons(faIcons);
Expand Down
1 change: 1 addition & 0 deletions svg/fontawesome/fas-at.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cfc1ef2

Please sign in to comment.