Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add link to view product in store

Paweł Burniakdeaf5361e3eb
diff --git a/saleor/dashboard/templates/dashboard/product/product_form.html b/saleor/dashboard/templates/dashboard/product/product_form.html
index 3391cb6f5d..6738fad963 100644
--- a/saleor/dashboard/templates/dashboard/product/product_form.html
+++ b/saleor/dashboard/templates/dashboard/product/product_form.html
@@ -16,16 +16,21 @@
{% block header_extra %}
{% if product.pk %}
- <a class="dropdown-button" href="#" data-activates="product-delete" data-constrainwidth="false">
+ <a class="dropdown-button" href="#" data-activates="context-menu" data-constrainwidth="false">
<i class="mdi-navigation-more-vert"></i>
</a>
- <ul id="product-delete" class="dropdown-content">
+ <ul id="context-menu" class="dropdown-content">
<li>
<a href="#base-modal" data-href="{% url 'dashboard:product-delete' pk=product.pk %}"
class="modal-trigger-custom">
{% trans "Remove product" %}
</a>
</li>
+ <li>
+ <a href="{{ product.get_absolute_url }}">
+ {% trans "Go to product page" %}
+ </a>
+ </li>
</ul>
{% endif %}
{% endblock %}