Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Reformat code even better
dominik-zeglena453e8b4b271
diff --git a/saleor/static/dashboard/js/components/bulk-actions.js b/saleor/static/dashboard/js/components/bulk-actions.jsindex 9e3c09b448..ee28f14627 100644--- a/saleor/static/dashboard/js/components/bulk-actions.js+++ b/saleor/static/dashboard/js/components/bulk-actions.js@@ -9,12 +9,7 @@ function updateCounterSelected () {counterText = pgettext('bulk action select label multiple', 'items selected');}- $counterTextNode.html(count ? `${count} ${counterText}` : counterText);- if (!count) {- $counterTextNode.addClass('hide');- } else {- $counterTextNode.removeClass('hide');- }+ $counterTextNode.html(count ? `${count} ${counterText}` : '');}$(document).ready((e) => {diff --git a/templates/dashboard/product/list.html b/templates/dashboard/product/list.htmlindex 7ce9a1ea90..16437f48ae 100644--- a/templates/dashboard/product/list.html+++ b/templates/dashboard/product/list.html@@ -53,12 +53,12 @@<div class="row mb-0"><div class="col s12">{{ bulk_action_form.action|materializecss:"inline s4" }}- <input type="submit" class="btn-flat bulk-submit" value="{% trans "Submit" context "Dashboard form submit input" %}" />+ <input type="submit" class="btn-flat bulk-submit" value="{% trans "Apply" context "Dashboard form submit input" %}" /></div></div><div class="row"><div class="col s12">- <div class="data-table-header-action-selected-items col inline hide"></div>+ <div class="data-table-header-action-selected-items col inline"></div></div></div></div>