Skip to content

Commit

Permalink
disable the button in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
sidgupta committed Apr 9, 2016
1 parent 5f4c5aa commit c1c31c3
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions caravel/templates/caravel/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,16 @@
<button type="button" class="btn btn-primary query">
<i class="fa fa-bolt"></i>Query
</button>
{% if viz.form_data.slice_id %}
<button type="button" class="btn btn-default" id="btn_overwrite">
{% if viz.form_data.slice_id and appbuilder.sm.has_access('can_edit', 'SliceModelView') %}
<button type="button" class="btn btn-default" id="btn_overwrite">
<i class="fa fa-save"></i>Overwrite
</button>
</button>
{% endif %}
{% if appbuilder.sm.has_access('can_add', 'SliceModelView') %}
<button type="button" class="btn btn-default" id="btn_save">
<i class="fa fa-plus-circle"></i>Save as
</button>
{% endif %}
<button type="button" class="btn btn-default" id="btn_save">
<i class="fa fa-plus-circle"></i>Save as
</button>
</div>
</div>
<br/>
Expand Down

0 comments on commit c1c31c3

Please sign in to comment.