diff --git a/web/src/components/MsdDialog.vue b/web/src/components/MsdDialog.vue index 877b99a2..2cc0230a 100644 --- a/web/src/components/MsdDialog.vue +++ b/web/src/components/MsdDialog.vue @@ -71,6 +71,9 @@ const loadingImages = ref(false) const imagesError = ref(null) const uploadProgress = ref(0) const uploading = ref(false) +const uploadProgressPercent = computed(() => + Math.round(Math.min(100, Math.max(0, uploadProgress.value))), +) const mountMode = ref<'cdrom' | 'flash'>('flash') // Default to readwrite for flash mode; cdrom forces readonly anyway @@ -821,108 +824,116 @@ onUnmounted(() => { - - - -
-
-

{{ t('msd.operations.loadImages') }}

-

{{ imagesError }}

-
- -
- - - - {{ t('msd.noImages') }} - - - -
+
-
-
- - -
- - -

{{ image.name }}

-
- -

{{ image.name }}

-
-
-
- {{ formatBytes(image.size) }} - + + + {{ uploadProgressPercent }}% + +
+ + +
+
+

{{ t('msd.operations.loadImages') }}

+

{{ imagesError }}

+
+ +
+ + + + {{ t('msd.noImages') }} + + + +