Skip to content

Commit

Permalink
Metadata editor / Add required indicator support to the keyword selec…
Browse files Browse the repository at this point in the history
…tor directive and fix its display for the field duration directive
  • Loading branch information
josegar74 authored and fxprunayre committed Oct 8, 2024
1 parent d4d2a31 commit 51c0b01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<span data-ng-class="required ? 'gn-required' : ''">
<span data-ng-class="required == 'true' ? 'gn-required' : ''">
<div class="" data-ng-show="isDisabled">
<span data-ng-show="sign">-&nbsp;</span>
<span data-ng-show="years != 0">{{years}} {{'year(s)' | translate}}&nbsp;</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@
// on keyword.
maxTags: "@",
thesaurusTitle: "@",
browsable: "@"
browsable: "@",
required: "@"
},
templateUrl:
"../../catalog/components/thesaurus/" + "partials/keywordselector.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</div>

<span data-ng-show="!invalidKeywordMatch">
<div class="row">
<div class="row" data-ng-class="required == 'true' ? 'gn-required' : ''">
<label class="col-sm-2 control-label"> {{thesaurusTitle}} </label>
<div
class="col-sm-9"
Expand Down

0 comments on commit 51c0b01

Please sign in to comment.