feat: 오픈 게임 취소와 유산 정산 경로 추가
별도 최고위험 권한으로 실행되는 원자적 취소 작업을 추가한다. 버려진 게임과 장수 기록의 보존·삭제 옵션, 오픈 원금 전액 환급 및 획득 포인트 보전율, 취소 상태와 관리자·과거기록 UI를 함께 반영한다.
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
|
||||
type ServerProfileTab = 'status' | 'version' | 'scenario';
|
||||
type ServerProfileTab = 'status' | 'version' | 'scenario' | 'cancel';
|
||||
|
||||
const props = defineProps<{
|
||||
profileName: string;
|
||||
activeTab: ServerProfileTab;
|
||||
canDeploy: boolean;
|
||||
canReset: boolean;
|
||||
canCancel: boolean;
|
||||
}>();
|
||||
|
||||
const tabs = computed(() =>
|
||||
@@ -30,6 +31,12 @@ const tabs = computed(() =>
|
||||
to: `/admin/servers/${encodeURIComponent(props.profileName)}/scenario`,
|
||||
visible: props.canReset,
|
||||
},
|
||||
{
|
||||
id: 'cancel' as const,
|
||||
label: '게임 취소',
|
||||
to: `/admin/servers/${encodeURIComponent(props.profileName)}/cancel`,
|
||||
visible: props.canCancel,
|
||||
},
|
||||
].filter((tab) => tab.visible)
|
||||
);
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user