Actually bind isAuthenticated.
authorAlexandre Segura <mex.zktk@gmail.com>
Fri, 24 Feb 2017 16:52:37 +0100
changeset 388 3133bd0207e4
parent 387 3d31afcb916c
child 389 583a366e298c
Actually bind isAuthenticated.
src/iconolab/templates/iconolab/detail_image.html
--- a/src/iconolab/templates/iconolab/detail_image.html	Fri Feb 24 15:23:15 2017 +0100
+++ b/src/iconolab/templates/iconolab/detail_image.html	Fri Feb 24 16:52:37 2017 +0100
@@ -41,7 +41,8 @@
     <image-annotator v-bind:annotation="annotation"
       ref="annotator"
       image="{% with image.media as img %}{{ img.url }}{% endwith %}"
-      thumbnail="{% thumbnail image.media '100x100' crop=False as thumb %}{{ thumb.url }}{% endthumbnail %}"></image-annotator>
+      thumbnail="{% thumbnail image.media '100x100' crop=False as thumb %}{{ thumb.url }}{% endthumbnail %}"
+      v-bind:is-authenticated="isAuthenticated"></image-annotator>
 
     <form id="form-annotation" action="{% url 'annotation_create' collection_name image.image_guid %}" method="POST">
       {% csrf_token %}
@@ -55,6 +56,7 @@
     <div class="panel panel-default">
       <div class="panel-body">
         <annotation-form v-bind:annotation="annotation"
+          v-bind:is-authenticated="isAuthenticated"
           action="{% url 'annotation_edit' collection_name image_guid ':annotation_guid' %}">
           {% csrf_token %}
         </annotation-form>