-
@@ -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();