diff -r 0a4779c0e445 -r 6949fe7a69b6 src_js/iconolab-bundle/src/components/editor/Canvas.vue --- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Tue Mar 14 11:08:05 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Tue Mar 14 12:50:50 2017 +0100 @@ -55,18 +55,21 @@ -
+
-
@@ -214,7 +217,9 @@ }, annotation: function(annotation) { - this.readonly = !!annotation || !this.isAuthenticated; + if (this.isAuthenticated) { + this.readonly = !!annotation; + } }, scale: function(scale) { var factor = 0; @@ -277,6 +282,10 @@ onAnnotationClick: function(annotation) { this.$emit('click:annotation', annotation); }, + toggleReadonly: function() { + if (!this.isAuthenticated) { return; } + this.readonly = !this.readonly; + }, hideTooltip: function() { this.$refs.free.hideTooltip(); this.$refs.rect.hideTooltip();