Make sure isLocked passed to Vue is a boolean

This commit is contained in:
Heinrich Lee Yu 2019-02-15 13:57:10 +08:00
parent d9328cb3e3
commit 880c0db5d4
No known key found for this signature in database
GPG key ID: 6EDB5D452716DE6B

View file

@ -133,7 +133,7 @@
#js-confidential-entry-point
-# haml-lint:disable InlineJavaScript
%script#js-lock-issue-data{ type: "application/json" }= { is_locked: issuable_sidebar[:discussion_locked], is_editable: can_edit_issuable }.to_json.html_safe
%script#js-lock-issue-data{ type: "application/json" }= { is_locked: !!issuable_sidebar[:discussion_locked], is_editable: can_edit_issuable }.to_json.html_safe
#js-lock-entry-point
.js-sidebar-participants-entry-point