diff options
Diffstat (limited to 'app/assets/javascripts/sidebar/stores/sidebar_store.js')
-rw-r--r-- | app/assets/javascripts/sidebar/stores/sidebar_store.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/sidebar/stores/sidebar_store.js b/app/assets/javascripts/sidebar/stores/sidebar_store.js index baf906bb96c..ea3b3633ea7 100644 --- a/app/assets/javascripts/sidebar/stores/sidebar_store.js +++ b/app/assets/javascripts/sidebar/stores/sidebar_store.js @@ -1,3 +1,5 @@ +import { parseBoolean } from '~/lib/utils/common_utils'; + export default class SidebarStore { constructor(options) { if (!SidebarStore.singleton) { @@ -12,7 +14,7 @@ export default class SidebarStore { const { currentUser, rootPath, editable, timeTrackingLimitToHours } = options; this.currentUser = currentUser; this.rootPath = rootPath; - this.editable = editable; + this.editable = parseBoolean(editable); this.timeEstimate = 0; this.totalTimeSpent = 0; this.humanTimeEstimate = ''; |