# HG changeset patch # User Alexandre Segura # Date 1487951790 -3600 # Node ID 583a366e298cc173b4db24e4a4b2e02f48ffb880 # Parent 3133bd0207e4efd7ebaf37b4194d11db92d18410 Fix usage of isAuthenticated. diff -r 3133bd0207e4 -r 583a366e298c src_js/iconolab-bundle/src/components/editor/Canvas.vue --- a/src_js/iconolab-bundle/src/components/editor/Canvas.vue Fri Feb 24 16:52:37 2017 +0100 +++ b/src_js/iconolab-bundle/src/components/editor/Canvas.vue Fri Feb 24 16:56:30 2017 +0100 @@ -109,8 +109,8 @@ computed: { canvasClass: function() { return { - 'canvas--rect': !this.readonly && this.mode === 'rect', - 'canvas--free': !this.readonly && this.mode === 'free' + 'canvas--rect': !this.readonly && this.isAuthenticated && this.mode === 'rect', + 'canvas--free': !this.readonly && this.isAuthenticated && this.mode === 'free' } } }, @@ -401,7 +401,7 @@ handleDrawFree: function() { - if (this.readonly) { return; } + if (!this.isAuthenticated) { return; } this.removeEventHandlers(); @@ -427,7 +427,7 @@ handleDrawRect: function() { - if (this.readonly) { return; } + if (!this.isAuthenticated) { return; } this.removeEventHandlers();