Skip to content

Commit

Permalink
Added an ugly button to allow phyloreferences to be deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Apr 5, 2018
1 parent 8e59d88 commit e54cef5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,16 @@ <h4 class="modal-title">Editing {{selected_tunit_list_container.type}} {{selecte
</form>
</div>

<div class="panel-footer" v-if="selected_phyloref !== undefined && testcase.phylorefs.indexOf(selected_phyloref) != -1">
<div class="btn-group btn-group-justified" role="group" aria-label="Actions for the entire phyloreference">
<a
href="#selected-phyloref"
class="btn btn-danger"
onclick="if(window.confirm('Are you sure you want to delete this phyloreference?')) { vm.testcase.phylorefs.splice(vm.testcase.phylorefs.indexOf(vm.selected_phyloref), 1); vm.selected_phyloref = undefined; }"
>Delete phyloreference</a>
</div>
</div>

<!-- List of phyloreferences -->
<div class="list-group">
<a href="#selected-phyloref"
Expand Down

0 comments on commit e54cef5

Please sign in to comment.