Fix form properties on Firmware page
File upload properties were added to the wrong form control, moved
browser-text, drop-placeholder and placeholder props from tftp
input to workstation file-upload component.
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I0342870b136b2f89da974410444e46dd5dbb28a1
diff --git a/src/views/Configuration/Firmware/Firmware.vue b/src/views/Configuration/Firmware/Firmware.vue
index 248b0ab..94070b7 100644
--- a/src/views/Configuration/Firmware/Firmware.vue
+++ b/src/views/Configuration/Firmware/Firmware.vue
@@ -125,6 +125,9 @@
v-model="file"
accept=".tar"
aria-describedby="image-file-help-block"
+ :browse-text="$t('global.fileUpload.browseText')"
+ :drop-placeholder="$t('global.fileUpload.dropPlaceholder')"
+ :placeholder="$t('global.fileUpload.placeholder')"
:disabled="isPageDisabled"
:state="getValidationState($v.file)"
@input="$v.file.$touch()"
@@ -145,9 +148,6 @@
id="tftp-id"
v-model="tftpIpAddress"
type="text"
- :browse-text="$t('global.fileUpload.browseText')"
- :drop-placeholder="$t('global.fileUpload.dropPlaceholder')"
- :placeholder="$t('global.fileUpload.placeholder')"
:state="getValidationState($v.tftpIpAddress)"
:disabled="isPageDisabled"
@input="$v.tftpIpAddress.$touch()"