We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65dac4 commit cad44a3Copy full SHA for cad44a3
app/code/Magento/Catalog/view/adminhtml/web/js/components/dynamic-rows-tier-price.js
@@ -28,6 +28,32 @@ define([
28
});
29
30
this.labels(labels);
31
+ },
32
+
33
+ /**
34
+ * Change page
35
+ *
36
+ * @param {Number} page - current page
37
+ */
38
+ changePage: function (page) {
39
+ this.clear(); /* Clear the children when directly edit the text field */
40
+ if (page === 1 && !this.recordData().length) {
41
+ return false;
42
+ }
43
44
+ if (~~page > this.pages()) {
45
+ this.currentPage(this.pages());
46
47
48
+ } else if (~~page < 1) {
49
+ this.currentPage(1);
50
51
52
53
54
+ this.initChildren();
55
56
+ return true;
57
}
58
59
0 commit comments