Commit f53f027
authored
fix(dashboard): rules form operator change (medusajs#13324)
**What**
- fix condition rules form sometimes rendering multi and single selects unrelated to the attribute operator selected
- reset rule value when operator is changed
- disable selecting rule values untill operator is selected
- translate labels1 parent c603540 commit f53f027
File tree
4 files changed
+43
-4
lines changed- .changeset
- packages/admin/dashboard/src
- i18n/translations
- routes/promotions/common/edit-rules/components/rule-value-form-field
4 files changed
+43
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10818 | 10818 | | |
10819 | 10819 | | |
10820 | 10820 | | |
| 10821 | + | |
| 10822 | + | |
| 10823 | + | |
| 10824 | + | |
| 10825 | + | |
| 10826 | + | |
10821 | 10827 | | |
10822 | 10828 | | |
10823 | 10829 | | |
| |||
10830 | 10836 | | |
10831 | 10837 | | |
10832 | 10838 | | |
10833 | | - | |
| 10839 | + | |
| 10840 | + | |
| 10841 | + | |
10834 | 10842 | | |
10835 | 10843 | | |
10836 | 10844 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2913 | 2913 | | |
2914 | 2914 | | |
2915 | 2915 | | |
2916 | | - | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
2917 | 2919 | | |
2918 | 2920 | | |
2919 | 2921 | | |
| |||
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
| |||
82 | 87 | | |
83 | 88 | | |
84 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
85 | 107 | | |
86 | 108 | | |
87 | 109 | | |
| |||
126 | 148 | | |
127 | 149 | | |
128 | 150 | | |
129 | | - | |
130 | 151 | | |
131 | 152 | | |
132 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
133 | 156 | | |
| 157 | + | |
134 | 158 | | |
135 | 159 | | |
136 | 160 | | |
| |||
0 commit comments