Skip to content

Commit

Permalink
IBX-1137: Added label to button in draft conflict (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Jan 24, 2022
1 parent dd22621 commit 4ef9849
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/bundle/Resources/translations/draft_conflict.en.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
<note>The source node in most cases contains the sample message as written by the developer. If it looks like a dot-delimitted string such as "form.label.firstname", then the developer has not provided a default message.</note>
</header>
<body>
<trans-unit id="fa302fb6391baf4d4e0f2cda3a5d2cca51aa49c9" resname="draft.conflict.add_new">
<source>Add new</source>
<target state="new">Add new</target>
<note>key: draft.conflict.add_new</note>
</trans-unit>
<trans-unit id="1020ca59a2c9fa207ebe162fd6727fd1a81027c0" resname="draft.conflict.choice">
<source>You can either edit any of your existing draft(s) or add a new one.</source>
<target state="new">You can either edit any of your existing draft(s) or add a new one.</target>
Expand Down Expand Up @@ -36,11 +41,6 @@
<target state="new">There is already one draft for this Content item.</target>
<note>key: draft.conflict.number.one</note>
</trans-unit>
<trans-unit id="a4297fe31e8eb3307caa2cf855328056c3b98962" resname="tab.versions.action.delete">
<source>Create a draft</source>
<target state="new">Create a draft</target>
<note>key: tab.versions.action.delete</note>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,14 @@
{% if show_add_button %}
<button
type="button"
class="btn ibexa-btn ibexa-btn--ghost ibexa-btn--no-text ibexa-btn--add-draft"
title="{{ 'tab.versions.action.delete'|trans|desc('Create a draft') }}"
class="btn ibexa-btn ibexa-btn--tertiary ibexa-btn--small ibexa-btn--add-draft"
>
<svg class="ibexa-icon ibexa-icon--small ibexa-icon--create">
<use xlink:href="{{ ibexa_icon_path('create') }}"></use>
</svg>
<span class="ibexa-btn__label">
{{ 'draft.conflict.add_new'|trans|desc('Add new') }}
</span>
</button>
{% endif %}
{% endmacro %}

0 comments on commit 4ef9849

Please sign in to comment.