4
4
5
5
<v-inline-text-edit
6
6
{{ $attributes } }
7
- :allow-edit =" {{ $allowEdit ? ' true ' : ' false ' } }"
7
+ :allow-edit =" {{ $allowEdit } }"
8
8
>
9
9
<div class =" group w-full max-w-full hover:rounded-sm" >
10
10
<div class =" rounded-xs flex h-[34px] items-center pl-2.5 text-left" >
@@ -37,11 +37,9 @@ 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
- @ {{
41
- (transformedLabel || inputValue || ' ' ).length > 20
42
- ? (transformedLabel || inputValue).substring (0 , 20 ) + ' ...'
43
- : (transformedLabel || inputValue)
44
- }}
40
+ @ {{ (valueLabel || inputValue || ' ' ).length > 20
41
+ ? (valueLabel || inputValue).substring (0 , 20 ) + ' ...'
42
+ : (valueLabel || inputValue) }}
45
43
< / span>
46
44
47
45
<!-- Tooltip -->
@@ -175,8 +173,6 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
175
173
isEditing: false ,
176
174
177
175
isRTL: document .documentElement .dir === ' rtl' ,
178
-
179
- transformedLabel: this .valueLabel ,
180
176
};
181
177
},
182
178
@@ -217,8 +213,6 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
217
213
218
214
if (this .url ) {
219
215
let formData = new FormData ();
220
-
221
- this .transformedLabel = this .inputValue ;
222
216
223
217
formData .append (this .name , this .inputValue );
224
218
@@ -234,8 +228,6 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
234
228
.catch ((error ) => {
235
229
this .inputValue = this .value ;
236
230
237
- this .transformedLabel = this .inputValue ;
238
-
239
231
this .$emitter .emit (' add-flash' , { type: ' error' , message: error .response .data .message });
240
232
});
241
233
}
0 commit comments