Skip to content

Commit

Permalink
Fix spurious "Select" button in upload.
Browse files Browse the repository at this point in the history
This wasn't supposed to be in there by default.
  • Loading branch information
jmchilton committed Jan 11, 2021
1 parent af4d041 commit 71f52b0
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 71f52b0

Please sign in to comment.