Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
Bind the store value to the disabled state
Browse files Browse the repository at this point in the history
  • Loading branch information
louisgv committed Jan 31, 2018
1 parent b375cea commit 0e85995
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions interface/frontend/src/components/open-image/ImageSeries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,13 @@
<div class="row">
<div class="col-md-8">
<div class="float-right">
<button class="btn btn-success" :disabled="!selectedUri" @click="startNewCase()">
<button class="btn btn-success" :disabled="!imageInProgress.id" @click="startNewCase()">
Start New Case
</button>
</div>
<tree-view class="item left"
:model="directories"
:parent="directories.name"
:selectedSeries="selectedUri">
:parent="directories.name">
</tree-view>
</div>
<div class="col-md-4">
Expand Down Expand Up @@ -152,7 +151,6 @@
paths: [],
state: ''
},
selectedUri: null,
showImport: false
}
},
Expand Down Expand Up @@ -225,8 +223,7 @@
},
async startNewCase () {
if (!this.imageInProgress.id) {
console.error('No Imagery Selected');
return;
return console.error('No Imagery Selected')
}
await this.$store.dispatch('startNewCase', {'uri': this.imageInProgress.id})
setTimeout(() => { this.refreshAvailableCases() }, 1000)
Expand Down

0 comments on commit 0e85995

Please sign in to comment.