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
65538ce3
Commit
65538ce3
authored
Mar 30, 2020
by
Doug Stull
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add human access info
parent
c84960b2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
+1
-3
app/assets/javascripts/pages/projects/blob/show/index.js
app/assets/javascripts/pages/projects/blob/show/index.js
+2
-1
app/views/projects/blob/_pipeline_tour_success.html.haml
app/views/projects/blob/_pipeline_tour_success.html.haml
+3
-1
No files found.
app/assets/javascripts/blob/pipeline_tour_success_modal.vue
View file @
65538ce3
...
@@ -55,9 +55,7 @@ export default {
...
@@ -55,9 +55,7 @@ export default {
},
},
methods
:
{
methods
:
{
trackOnShow
()
{
trackOnShow
()
{
if
(
!
this
.
popoverDismissed
)
{
this
.
track
();
this
.
track
();
}
},
},
disableModalFromRenderingAgain
()
{
disableModalFromRenderingAgain
()
{
Cookies
.
remove
(
this
.
commitCookie
);
Cookies
.
remove
(
this
.
commitCookie
);
...
...
app/assets/javascripts/pages/projects/blob/show/index.js
View file @
65538ce3
...
@@ -45,12 +45,13 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -45,12 +45,13 @@ document.addEventListener('DOMContentLoaded', () => {
new
Vue
({
new
Vue
({
el
:
successPipelineEl
,
el
:
successPipelineEl
,
render
(
createElement
)
{
render
(
createElement
)
{
const
{
commitCookie
,
pipelinesPath
:
goToPipelinesPath
}
=
this
.
$el
.
dataset
;
const
{
commitCookie
,
goToPipelinesPath
,
humanAccess
}
=
this
.
$el
.
dataset
;
return
createElement
(
PipelineTourSuccessModal
,
{
return
createElement
(
PipelineTourSuccessModal
,
{
props
:
{
props
:
{
goToPipelinesPath
,
goToPipelinesPath
,
commitCookie
,
commitCookie
,
humanAccess
,
},
},
});
});
},
},
...
...
app/views/projects/blob/_pipeline_tour_success.html.haml
View file @
65538ce3
.js-success-pipeline-modal
{
'data-commit-cookie'
:
suggest_pipeline_commit_cookie_name
,
'data-pipelines-path'
:
project_pipelines_path
(
@project
)
}
.js-success-pipeline-modal
{
data:
{
'commit-cookie'
:
suggest_pipeline_commit_cookie_name
,
'go-to-pipelines-path'
:
project_pipelines_path
(
@project
),
'human-access'
:
@project
.
team
.
human_max_access
(
current_user
&
.
id
)
}
}
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