Skip to content

Commit

Permalink
Merge pull request #1528 from ioanpocol/master
Browse files Browse the repository at this point in the history
fix(translate): Show translate option on monitoring lists
  • Loading branch information
ioanpocol authored Apr 20, 2017
2 parents 05bf461 + 54e335b commit 618f229
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ export function TansaScopeSyncDirective($rootScope) {
}

var txt = $(node).find('.text-editor');
var tag = _.find(txt, (elem) => $(elem).is(':visible'));

return _.find(txt, (elem) => $(elem).is(':visible')).innerHTML;
if (tag) {
return tag.innerHTML;
}
return node.innerHTML;
}

scope.$on('$destroy', deregisterTansa);
Expand Down
1 change: 1 addition & 0 deletions scripts/apps/search/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const CORE_PROJECTED_FIELDS = {
'lock_session',
'genre',
'source',
'language',
'last_published_version',
'archived',
'associations',
Expand Down
1 change: 1 addition & 0 deletions scripts/core/editor2/views/block-embed.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</div>
<div class="editor--caption">
<div sd-remove-tags
tansa-scope-sync
placeholder="{{::'Description'|translate}}"
type="text"
ng-model="vm.caption"
Expand Down

0 comments on commit 618f229

Please sign in to comment.