mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 16:23:50 +02:00
replace el-dialog
This commit is contained in:
@@ -1,34 +1,37 @@
|
||||
<template>
|
||||
<el-dialog
|
||||
v-model="isVisible"
|
||||
:title="t('dialog.allowed_video_player_domains.header')"
|
||||
width="600px"
|
||||
destroy-on-close
|
||||
append-to-body>
|
||||
<div>
|
||||
<InputGroupAction
|
||||
v-for="(domain, index) in urlList"
|
||||
:key="index"
|
||||
v-model="urlList[index]"
|
||||
size="sm"
|
||||
style="margin-top: 5px">
|
||||
<template #actions>
|
||||
<Button variant="ghost" @click="urlList.splice(index, 1)"><Trash2 /></Button>
|
||||
</template>
|
||||
</InputGroupAction>
|
||||
<Button size="sm" variant="outline" style="margin-top: 5px" @click="urlList.push('')">
|
||||
{{ t('dialog.allowed_video_player_domains.add_domain') }}
|
||||
</Button>
|
||||
</div>
|
||||
<template #footer>
|
||||
<Button :disabled="!worldAllowedDomainsDialog.worldId" @click="saveWorldAllowedDomains">
|
||||
{{ t('dialog.allowed_video_player_domains.save') }}
|
||||
</Button>
|
||||
</template>
|
||||
</el-dialog>
|
||||
<Dialog v-model:open="isVisible">
|
||||
<DialogContent class="sm:max-w-150">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{{ t('dialog.allowed_video_player_domains.header') }}</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
<div>
|
||||
<InputGroupAction
|
||||
v-for="(domain, index) in urlList"
|
||||
:key="index"
|
||||
v-model="urlList[index]"
|
||||
size="sm"
|
||||
style="margin-top: 5px">
|
||||
<template #actions>
|
||||
<Button variant="ghost" @click="urlList.splice(index, 1)"><Trash2 /></Button>
|
||||
</template>
|
||||
</InputGroupAction>
|
||||
<Button size="sm" variant="outline" style="margin-top: 5px" @click="urlList.push('')">
|
||||
{{ t('dialog.allowed_video_player_domains.add_domain') }}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<DialogFooter>
|
||||
<Button :disabled="!worldAllowedDomainsDialog.worldId" @click="saveWorldAllowedDomains">
|
||||
{{ t('dialog.allowed_video_player_domains.save') }}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
|
||||
import { computed, ref, watch } from 'vue';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { InputGroupAction } from '@/components/ui/input-group';
|
||||
|
||||
Reference in New Issue
Block a user