@@ -105,22 +105,27 @@ const selectionSummary = computed(() =>
105105
106106/* ---------------------------------------------------------------- actions --- */
107107
108- // Bulk runs can launch many workflows at once, so confirm first.
108+ // Every export is confirmed first — bulk runs can launch many workflows at
109+ // once, and single-asset runs are still irreversible.
109110const confirmOpen = ref (false );
110111
112+ const confirmTitle = computed (() =>
113+ props .bulkMode
114+ ? t (" vbExport.bulkConfirmTitle" )
115+ : t (" vbExport.confirmTitle" ),
116+ );
117+
111118const confirmMessage = computed (() =>
112- t (" vbExport.bulkConfirmMessage" , {
113- n: exportableAssets .value .length ,
114- d: selectedDestCount .value ,
115- }),
119+ props .bulkMode
120+ ? t (" vbExport.bulkConfirmMessage" , {
121+ n: exportableAssets .value .length ,
122+ d: selectedDestCount .value ,
123+ })
124+ : t (" vbExport.confirmMessage" , { d: selectedDestCount .value }),
116125);
117126
118127function attemptExport() {
119- if (props .bulkMode ) {
120- confirmOpen .value = true ;
121- return ;
122- }
123- startExport ();
128+ confirmOpen .value = true ;
124129}
125130
126131function confirmExport() {
@@ -299,10 +304,10 @@ function startExport() {
299304 </div >
300305 </div >
301306
302- <!-- Bulk export confirmation -->
307+ <!-- Export confirmation (both single-asset and bulk) -->
303308 <DesignDialog
304309 v-model :open =" confirmOpen "
305- :title =" $t ( ' vbExport.bulkConfirmTitle ' ) "
310+ :title =" confirmTitle "
306311 :description =" confirmMessage "
307312 >
308313 <div class =" flex w-full justify-end gap-2" >
@@ -314,7 +319,11 @@ function startExport() {
314319 icon="tabler:file-export "
315320 @click =" confirmExport "
316321 >
317- {{ $t("vbExport.bulkStart") }}
322+ {{
323+ bulkMode
324+ ? $t("vbExport.bulkStart")
325+ : $t("vbExport.startExport")
326+ }}
318327 </DesignButton >
319328 </div >
320329 </DesignDialog >
0 commit comments