Skip to content

Commit

Permalink
Merge pull request #11096 from jmchilton/fix_select_button
Browse files Browse the repository at this point in the history
Fix spurious "Select" button in upload.
  • Loading branch information
mvdbeek authored Jan 12, 2021
2 parents d93afb0 + 71f52b0 commit 787e877
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/src/components/Upload/Default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
class="ui-button-default"
id="btn-build"
@click="_eventSelect"
v-if="selectable"
:disabled="!enableBuild"
:variant="enableBuild ? 'primary' : ''"
>
Expand Down
4 changes: 4 additions & 0 deletions client/src/components/Upload/UploadBoxMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export default {
type: Number,
default: null,
},
selectable: {
type: Boolean,
default: false,
},
},
computed: {
btnFilesTitle() {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Upload/UploadModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>
<b-tabs v-if="ready">
<b-tab title="Regular" id="regular" button-id="tab-title-link-regular" v-if="showRegular">
<default :app="this" :lazy-load-max="50" :multiple="multiple" />
<default :app="this" :lazy-load-max="50" :multiple="multiple" :selectable="callback != null" />
</b-tab>
<b-tab title="Composite" id="composite" button-id="tab-title-link-composite" v-if="showComposite">
<composite :app="this" />
Expand Down

0 comments on commit 787e877

Please sign in to comment.