@@ -23,7 +23,7 @@ class="flex items-center gap-1 break-all rounded-md bg-rose-100 px-3 py-1.5 text
23
23
'color': backgroundColors.find(color => color.background === tag.color)?.text
24
24
}"
25
25
v-for =" (tag, index) in tags"
26
- v-html =" tag.name"
26
+ v-safe- html =" tag.name"
27
27
>
28
28
</span >
29
29
@@ -105,7 +105,7 @@ class="flex flex-col gap-2 px-4 py-1.5"
105
105
<label class =" text-gray-600 dark:text-gray-300" >
106
106
@lang (' admin::app.components.tags.index.added-tags' )
107
107
</label >
108
-
108
+
109
109
<!-- Added Tags List -->
110
110
<ul class =" flex flex-col" >
111
111
<template v-for =" tag in tags" >
@@ -158,7 +158,7 @@ class="flex h-4 w-4 break-all rounded-full"
158
158
</x-slot >
159
159
</x-admin::dropdown >
160
160
@endif
161
-
161
+
162
162
@if (bouncer ()-> hasPermission (' settings.other_settings.tags.delete' ) )
163
163
<div class =" flex items-center" >
164
164
<span
@@ -200,7 +200,7 @@ class="p-1"
200
200
type: String ,
201
201
default: ' ' ,
202
202
},
203
-
203
+
204
204
addedTags: {
205
205
type: Array ,
206
206
default : () => [],
@@ -218,7 +218,7 @@ class="p-1"
218
218
isRemoving: {},
219
219
220
220
tags: [],
221
-
221
+
222
222
searchedTags: [],
223
223
224
224
backgroundColors: [
@@ -276,9 +276,9 @@ class="p-1"
276
276
}
277
277
278
278
this .isSearching = true ;
279
-
279
+
280
280
let self = this ;
281
-
281
+
282
282
this .$axios .get (" {{ route (' admin.settings.tags.search' ) } }" , {
283
283
params: {
284
284
search: ' name:' + this .searchTerm ,
@@ -365,11 +365,11 @@ class="p-1"
365
365
366
366
detachFromEntity (tag ) {
367
367
var self = this ;
368
-
368
+
369
369
this .$emitter .emit (' open-confirm-modal' , {
370
370
agree : () => {
371
371
this .isRemoving [tag .id ] = true ;
372
-
372
+
373
373
this .$axios .delete (this .detachEndpoint , {
374
374
data: {
375
375
tag_id: tag .id ,
@@ -386,7 +386,7 @@ class="p-1"
386
386
})
387
387
.catch (error => {
388
388
self .$emitter .emit (' add-flash' , { type: ' error' , message: error .response .data .message });
389
-
389
+
390
390
self .isRemoving [tag .id ] = false ;
391
391
});
392
392
},
0 commit comments