diff --git a/frontend/src/components/Upload.vue b/frontend/src/components/Upload.vue index 9e79f8e..a1f4f1e 100644 --- a/frontend/src/components/Upload.vue +++ b/frontend/src/components/Upload.vue @@ -47,6 +47,13 @@ export default defineComponent({ resetFile() { this.file = null; (document.getElementById('fileUpload') as HTMLInputElement).value = ""; + }, + titleSendButton() { + if (this.sent === true) + return "Envoyé"; + if (this.file === null) + return "Aucune image sélectionnée"; + return "Envoyer (" + this.file.length + " image(s) sélectionnée(s))"; } }, watch: { @@ -76,7 +83,7 @@ export default defineComponent({ - +

Preview :

@@ -122,4 +129,9 @@ h2 { justify-content: space-evenly; flex-wrap: wrap; } + +.green { + color: green; + font-weight: bold; +} \ No newline at end of file