src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue
changeset 385 d0465086d8d2
parent 356 a45f7dac4789
child 400 c85505149eea
--- a/src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue	Fri Feb 24 14:54:06 2017 +0100
+++ b/src_js/iconolab-bundle/src/components/editor/AnnotationForm.vue	Fri Feb 24 15:15:27 2017 +0100
@@ -1,6 +1,6 @@
 <template>
     <div>
-        <button v-if="annotation" @click="readonly = !readonly"
+        <button v-if="annotation && isAuthenticated" @click="readonly = !readonly"
             class="btn btn-xs pull-right"
             v-bind:class="{ 'btn-primary': readonly, 'btn-warning': !readonly }">
             <i class="fa fa-edit" v-if="readonly"></i>
@@ -62,6 +62,10 @@
                     return null;
                 }
             },
+            isAuthenticated: {
+                type: Boolean,
+                default: false
+            }
         },
         components: {
             'tag-list': TagList