File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ class="group relative h-[18px] !w-full pl-2.5"
37
37
: style= " { 'text-align': position }"
38
38
>
39
39
< span class = " cursor-pointer truncate rounded" >
40
- @ {{ (valueLabel || inputValue || ' ' ).length > 20 ? (valueLabel || inputValue).substring (0 , 20 ) + ' ...' : (valueLabel || inputValue) }}
40
+ @ {{
41
+ (transformedLabel || inputValue || ' ' ).length > 20
42
+ ? (transformedLabel || inputValue).substring (0 , 20 ) + ' ...'
43
+ : (transformedLabel || inputValue)
44
+ }}
41
45
< / span>
42
46
43
47
<!-- Tooltip -->
@@ -171,6 +175,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
171
175
isEditing: false ,
172
176
173
177
isRTL: document .documentElement .dir === ' rtl' ,
178
+
179
+ transformedLabel: this .valueLabel ,
174
180
};
175
181
},
176
182
@@ -211,6 +217,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
211
217
212
218
if (this .url ) {
213
219
let formData = new FormData ();
220
+
221
+ this .transformedLabel = this .inputValue ;
214
222
215
223
formData .append (this .name , this .inputValue );
216
224
@@ -226,6 +234,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
226
234
.catch ((error ) => {
227
235
this .inputValue = this .value ;
228
236
237
+ this .transformedLabel = this .inputValue ;
238
+
229
239
this .$emitter .emit (' add-flash' , { type: ' error' , message: error .response .data .message });
230
240
});
231
241
}
You can’t perform that action at this time.
0 commit comments