Skip to content

Commit

Permalink
Translate search label
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Nov 5, 2024
1 parent 8627a03 commit 0dd7ede
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/management/components/query-search-bar.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ angular
});

/* @ngInject */
function QuerySearchBarComponent() {
function QuerySearchBarComponent($translate) {
var qsb = this;

qsb.queryString = '';
qsb.find = find;

qsb.$onInit = function() {
$translate(qsb.searchLabel).then(function(translatedLabel) {
qsb.searchLabel = translatedLabel;
});
};

/**
* Search with a given query string and update the search bar or use the one currently displayed in the search bar
*
Expand Down

0 comments on commit 0dd7ede

Please sign in to comment.