mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-24 09:13:50 +02:00
replace el-tag with Badge
This commit is contained in:
@@ -28,16 +28,28 @@
|
||||
</el-button>
|
||||
<br />
|
||||
<h2>{{ t('dialog.chatbox_blacklist.user_blacklist') }}</h2>
|
||||
<el-tag
|
||||
<Badge
|
||||
v-for="user in chatboxUserBlacklist"
|
||||
:key="user[0]"
|
||||
type="info"
|
||||
disable-transitions
|
||||
style="margin-right: 5px; margin-top: 5px"
|
||||
closable
|
||||
@close="deleteChatboxUserBlacklist(user[0])">
|
||||
variant="outline"
|
||||
style="margin-right: 5px; margin-top: 5px">
|
||||
<span>{{ user[1] }}</span>
|
||||
</el-tag>
|
||||
<button
|
||||
type="button"
|
||||
style="
|
||||
margin-left: 6px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
"
|
||||
@click="deleteChatboxUserBlacklist(user[0])">
|
||||
<i class="ri-close-line" style="font-size: 12px; line-height: 1"></i>
|
||||
</button>
|
||||
</Badge>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</template>
|
||||
@@ -47,6 +59,7 @@
|
||||
import { storeToRefs } from 'pinia';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
|
||||
import { Badge } from '../../../components/ui/badge';
|
||||
import { usePhotonStore } from '../../../stores';
|
||||
|
||||
const { t } = useI18n();
|
||||
@@ -64,7 +77,6 @@
|
||||
|
||||
const emit = defineEmits(['deleteChatboxUserBlacklist']);
|
||||
|
||||
|
||||
function deleteChatboxUserBlacklist(userId) {
|
||||
emit('deleteChatboxUserBlacklist', userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user