Skip to content

Commit

Permalink
MBS-9675, MBS-9676: Load attributes gettext domain
Browse files Browse the repository at this point in the history
in work creation dialog specifically.
  • Loading branch information
yvanzo committed May 29, 2018
1 parent c02d2c4 commit d4fca9f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion root/forms/dialog.tt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
</script>
</head>
[% ELSE %]
[%- React.embed(c, 'layout/components/Head', {
[%- IF !gettext_domains;
SET gettext_domains = [];
END;
IF dialog_template == "work/edit_form.tt";
SET gettext_domains.push('attributes');
END;
React.embed(c, 'layout/components/Head', {
canonical_url => canonical_url,
gettext_domains => gettext_domains,
homepage => homepage,
no_icons => no_icons,
pager => pager,
Expand Down

0 comments on commit d4fca9f

Please sign in to comment.