Skip to content

Conversation

dietergeerts
Copy link

…+ added compile option, to support translations.

…+ added compile option, to support translations.
contextMenu.js Outdated
} else if (typeof item.text !== "undefined") {
}
else if (typeof item.html !== "undefined" && item.replaceTextByHtml)
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This curly brace should be moved to previous line for consistency

@josetaira
Copy link
Collaborator

Seems to look alright. I'll test it out in a little while. In the meantime, please check out some of the minor comments above.

Also, what is the issue related to this?

@dietergeerts
Copy link
Author

Hi, I restyled the curly braces. The reason I did them that way is to make it more readable, as it was getting cramped with code.

As for what issue: none actually, I didn't made one, but I had some functionality added:

  • We needed to have an icon before a menu item, but inside the original link tag, not completely replacing the item
  • We needed to use translations with the menu items, so compilation is needed (also for the icon)

So for example, I need the following html inside the link tag:
<span data-ng-include="'/icons/add.svg'"></span> <span>{{::'ACTION.ADD' | translate}}</span>

@dmarafetti
Copy link

This feature definitely must be part of the master brach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants