Commit 65538ce3 authored by Doug Stull's avatar Doug Stull

Add human access info

parent c84960b2
...@@ -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);
......
...@@ -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,
}, },
}); });
}, },
......
.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) } }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment