diff --git a/src/components/ScreenTemplateCard.vue b/src/components/ScreenTemplateCard.vue
index 323173bf5..71291a444 100644
--- a/src/components/ScreenTemplateCard.vue
+++ b/src/components/ScreenTemplateCard.vue
@@ -9,7 +9,11 @@
v-if="thumbnail"
class="thumbnail-container thumbnail-image-container"
>
-
+
-
+
{{ template.name }}
- {{ template.description }}
+ {{
+ template.description
+ }}
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/src/components/renderer/file-upload.vue b/src/components/renderer/file-upload.vue
index b3881bc4e..ceeb00bb7 100644
--- a/src/components/renderer/file-upload.vue
+++ b/src/components/renderer/file-upload.vue
@@ -61,32 +61,34 @@
-
+
{{ $t('Skip Uploading') }}
-
- {{ $t('Add File/Photo') }}
+ {{ $t('Add File/Photo') }}
{{ $t('Add another') }}
-
- {{ $t('Send All') }}
+
+ {{ $t('Send All') }} {{ $t('Submit File/Photo') }}
@@ -270,7 +272,7 @@ export default {
return this.screenType === 'conversational-forms';
},
showSingleUploadButton() {
- return this.files.length === 0 || !this.multipleUpload;
+ return this.files.length === 0 && !this.multipleUpload;
},
showMultiUploadButton() {
return this.files.length !== 0 && this.multipleUpload;
@@ -402,7 +404,6 @@ export default {
},
setRequestFiles() {
_.set(window, `PM4ConfigOverrides.requestFiles["${this.fileDataName}"]`, this.files);
- console.log("!!!!!! SET REQUEST FILES", this.valueToSend());
this.$emit('input', this.valueToSend());
},
valueToSend() {
@@ -491,7 +492,7 @@ export default {
}
this.$delete(this.nativeFiles, id);
}
-
+ this.$emit('file-deleted', this.files);
},
addToFiles(fileInfo) {
if (this.multipleUpload) {
@@ -625,7 +626,6 @@ export default {
this.$set(this.nativeFiles, id, rootFile);
this.addToFiles(fileInfo);
} else {
- console.log("!!!!!! FILE UPLOADED", name);
this.$emit('input', name);
}
},
@@ -763,4 +763,8 @@ export default {
box-shadow: 0px 12px 24px -12px #0000001F;
}
+.form-control-file.cf-single-file-upload label {
+ display: none;
+}
+