Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b0c1ee1a
Commit
b0c1ee1a
authored
Aug 06, 2021
by
Nathan Friend
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use parseBoolean helper from common_utils
parent
702f9fb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/environments/components/environments_app.vue
.../javascripts/environments/components/environments_app.vue
+4
-3
No files found.
app/assets/javascripts/environments/components/environments_app.vue
View file @
b0c1ee1a
<
script
>
import
{
GlBadge
,
GlButton
,
GlModalDirective
,
GlTab
,
GlTabs
,
GlAlert
}
from
'
@gitlab/ui
'
;
import
createFlash
from
'
~/flash
'
;
import
{
setCookie
,
getCookie
}
from
'
~/lib/utils/common_utils
'
;
import
{
setCookie
,
getCookie
,
parseBoolean
}
from
'
~/lib/utils/common_utils
'
;
import
{
s__
}
from
'
~/locale
'
;
import
{
ENVIRONMENTS_SURVEY_DISMISSED_COOKIE_NAME
}
from
'
../constants
'
;
import
eventHub
from
'
../event_hub
'
;
...
...
@@ -67,8 +67,9 @@ export default {
},
data
()
{
return
{
environmentsSurveyAlertDismissed
:
getCookie
(
ENVIRONMENTS_SURVEY_DISMISSED_COOKIE_NAME
)
===
'
true
'
,
environmentsSurveyAlertDismissed
:
parseBoolean
(
getCookie
(
ENVIRONMENTS_SURVEY_DISMISSED_COOKIE_NAME
),
),
};
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment