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

Add human access info

parent c84960b2
......@@ -55,9 +55,7 @@ export default {
},
methods: {
trackOnShow() {
if (!this.popoverDismissed) {
this.track();
}
this.track();
},
disableModalFromRenderingAgain() {
Cookies.remove(this.commitCookie);
......
......@@ -45,12 +45,13 @@ document.addEventListener('DOMContentLoaded', () => {
new Vue({
el: successPipelineEl,
render(createElement) {
const { commitCookie, pipelinesPath: goToPipelinesPath } = this.$el.dataset;
const { commitCookie, goToPipelinesPath, humanAccess } = this.$el.dataset;
return createElement(PipelineTourSuccessModal, {
props: {
goToPipelinesPath,
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