jcloud/dashboard/src2/components/ActiveServersDialog.vue
2025-04-12 17:39:38 +08:00

43 lines
916 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<Dialog :options="{ title: '删除活动服务器' }" v-model="showDialog">
<template #body-content>
<div class="prose text-base">
在禁用账户之前请删除以下活动服务器
<ul class="pt-2">
<li
class="font-semibold"
v-for="server in $resources.activeServers.data"
>
{{ server.title }} - {{ server.name }}
</li>
</ul>
</div>
</template>
<template #actions>
<Button variant="solid" class="w-full" @click="redirectToServer"
>删除服务器</Button
>
</template>
</Dialog>
</template>
<script>
export default {
name: 'ActiveServersDialog',
data() {
return {
showDialog: true
};
},
resources: {
activeServers: {
url: 'jcloud.api.account.active_servers',
auto: true
}
},
methods: {
redirectToServer() {
window.location = '/servers';
}
}
};
</script>