Skip to content

Commit c0045ae

Browse files
Merge branch '2.0'
2 parents 8bf53f1 + 6fbdcf6 commit c0045ae

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/Webkul/Admin/src/Resources/views/components/tags/index.blade.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class="flex items-center gap-1 break-all rounded-md bg-rose-100 px-3 py-1.5 text
2323
'color': backgroundColors.find(color => color.background === tag.color)?.text
2424
}"
2525
v-for="(tag, index) in tags"
26-
v-html="tag.name"
26+
v-safe-html="tag.name"
2727
>
2828
</span>
2929

@@ -105,7 +105,7 @@ class="flex flex-col gap-2 px-4 py-1.5"
105105
<label class="text-gray-600 dark:text-gray-300">
106106
@lang('admin::app.components.tags.index.added-tags')
107107
</label>
108-
108+
109109
<!-- Added Tags List -->
110110
<ul class="flex flex-col">
111111
<template v-for="tag in tags">
@@ -158,7 +158,7 @@ class="flex h-4 w-4 break-all rounded-full"
158158
</x-slot>
159159
</x-admin::dropdown>
160160
@endif
161-
161+
162162
@if (bouncer()->hasPermission('settings.other_settings.tags.delete'))
163163
<div class="flex items-center">
164164
<span
@@ -200,7 +200,7 @@ class="p-1"
200200
type: String,
201201
default: '',
202202
},
203-
203+
204204
addedTags: {
205205
type: Array,
206206
default: () => [],
@@ -218,7 +218,7 @@ class="p-1"
218218
isRemoving: {},
219219
220220
tags: [],
221-
221+
222222
searchedTags: [],
223223
224224
backgroundColors: [
@@ -276,9 +276,9 @@ class="p-1"
276276
}
277277
278278
this.isSearching = true;
279-
279+
280280
let self = this;
281-
281+
282282
this.$axios.get("{{ route('admin.settings.tags.search') }}", {
283283
params: {
284284
search: 'name:' + this.searchTerm,
@@ -365,11 +365,11 @@ class="p-1"
365365
366366
detachFromEntity(tag) {
367367
var self = this;
368-
368+
369369
this.$emitter.emit('open-confirm-modal', {
370370
agree: () => {
371371
this.isRemoving[tag.id] = true;
372-
372+
373373
this.$axios.delete(this.detachEndpoint, {
374374
data: {
375375
tag_id: tag.id,
@@ -386,7 +386,7 @@ class="p-1"
386386
})
387387
.catch(error => {
388388
self.$emitter.emit('add-flash', { type: 'error', message: error.response.data.message });
389-
389+
390390
self.isRemoving[tag.id] = false;
391391
});
392392
},

0 commit comments

Comments
 (0)