Skip to content

Commit

Permalink
AMP-3399/AMP-3398
Browse files Browse the repository at this point in the history
- fix file upload input error on value property on all ocurrances
- remove tmp log
  • Loading branch information
yingfeng-iu committed Oct 16, 2024
1 parent 28d6100 commit d53e445
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 16 deletions.
2 changes: 0 additions & 2 deletions src/components/batch/BatchIngest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@
v-bind="filename"
type="file"
class="form-control-file btn btn-light btn-lg"
id="exampleFormControlFile1"
ref="inputFile"

:disabled="inProgress || unitName.length === 0"
accept=".csv"
@change="
Expand Down
3 changes: 0 additions & 3 deletions src/components/entity/ItemFiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,9 @@
>
<div class="d-flex w-100 mt-3">
<div class="input-group image-preview col-11 p-0 mr-1">
<!-- <label for="exampleFormControlFile1" class="form-control-file btn btn-light btn-lg"><button>Browse</button></label> -->
<input
type="file"
class="form-control-file btn btn-light btn-lg"
id="exampleFormControlFile1"
value="Upload"
ref="fileupload"
@change="getFile"
/>
Expand Down
2 changes: 0 additions & 2 deletions src/components/evaluation/GroundTruthModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@
type="file"
:accept="'.' + mstDetails.groundtruthFormat"
class="form-control-file btn btn-light btn"
id="exampleFormControlFile1"
value="Upload"
ref="fileupload"
@change="getFile"
:disabled="uploadGtFiles.length > 0"
Expand Down
2 changes: 0 additions & 2 deletions src/components/supplement/SupplementFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
<input
type="file"
class="form-control-file btn btn-light btn-lg"
id="exampleFormControlFile1"
value="upload"
@change="filesChange"
/>
</label>
Expand Down
7 changes: 0 additions & 7 deletions src/components/supplement/SupplementList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -144,19 +144,15 @@ export default {
acActions: sync("acActions"),
baseUrl() {
const self = this;
console.log("url:" + window.location);
if (
window.location.href.toLowerCase().indexOf("supplemental-files/") > -1
) {
console.log("supplement file");
return "supplement";
} else if (
window.location.href.toLowerCase().indexOf("supplemental-files") > -1
) {
console.log("supplement list");
return "list-supplement";
}
console.log("invalid path");
return "";
},
},
Expand Down Expand Up @@ -192,7 +188,6 @@ export default {
async getSupplementData() {
const self = this;
self.showLoader = true;
console.log("getSupplementData ...");
const supplementalFilesResponse = await self.getSupplementalFiles(self);
if (supplementalFilesResponse) {
Expand Down Expand Up @@ -246,7 +241,6 @@ export default {
async getData() {
const self = this;
if (self.baseUrl === "list-supplement") {
console.log("getSupplementData...");
self.getSupplementData();
}
},
Expand All @@ -273,7 +267,6 @@ export default {
},
},
mounted() {
console.log("SupplementList.mounted");
this.getData();
},
};
Expand Down

0 comments on commit d53e445

Please sign in to comment.