Merge pull request #12736 from assuntad23/bugfix/fix-collection-upload-ui/12535

Removing unusable Name field from Collections upload
This commit is contained in:
Dannon
2021-10-18 14:15:53 -04:00
committed by GitHub
3 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -4,7 +4,6 @@
<table class="upload-table ui-table-striped" v-show="!showHelper" ref="uploadTable">
<thead>
<tr>
<th>Name</th>
<th>Size</th>
<th>Status</th>
<th />
@@ -87,7 +86,7 @@
ref="btnCreate"
class="ui-button-default"
id="btn-new"
@click="_eventCreate"
@click="_eventCreate(false)"
:disabled="!enableSources"
>
<span class="fa fa-edit"></span>{{ btnCreateTitle }}
+1 -1
View File
@@ -80,7 +80,7 @@
ref="btnCreate"
class="ui-button-default"
id="btn-new"
@click="_eventCreate"
@click="_eventCreate(true)"
:disabled="!enableSources"
>
<span class="fa fa-edit"></span>{{ btnCreateTitle }}
@@ -254,8 +254,12 @@ export default {
}
},
/** Create a new file */
_eventCreate: function () {
this.uploadbox.add([{ name: "New File", size: 0, mode: "new" }]);
_eventCreate: function (withNewFile) {
if (withNewFile == true) {
this.uploadbox.add([{ name: "New File", size: 0, mode: "new" }]);
} else if (withNewFile == false) {
this.uploadbox.add([{ size: 0, mode: "new" }]);
}
},
/** Pause upload process */
_eventStop: function () {