Skip to content
Snippets Groups Projects
Commit 562df3a3 authored by Regis's avatar Regis
Browse files

pass svg as prop to commit component

parent 07c6c8e0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -19,6 +19,7 @@
(() => {
const project = document.querySelector('.pipelines');
const entry = document.querySelector('.vue-pipelines-index');
const svgs = document.querySelector('.pipeline-svgs');
 
Vue.use(VueResource);
 
Loading
Loading
@@ -28,6 +29,7 @@
data: {
scope: project.dataset.url,
store: new gl.PipelineStore(),
svgs: svgs.dataset,
},
components: {
'vue-pipelines': gl.VuePipelines,
Loading
Loading
@@ -37,6 +39,7 @@
<vue-pipelines
:scope='scope'
:store='store'
:svgs='svgs'
>
</vue-pipelines>
</div>
Loading
Loading
Loading
Loading
@@ -26,7 +26,7 @@
pageRequest: false,
};
},
props: ['scope', 'store'],
props: ['scope', 'store', 'svgs'],
created() {
const pagenum = gl.getParameterByName('p');
const scope = gl.getParameterByName('scope');
Loading
Loading
@@ -81,12 +81,13 @@
<pipeline-url :pipeline='pipeline'></pipeline-url>
<td>
<commit
:commit-icon-svg='svgs.commitIconSvg'
:author='author(pipeline)'
:tag="pipeline.ref['tag?']"
:title='commitTitle(pipeline)'
:commit_ref='ref(pipeline)'
:short_sha='commitSha(pipeline)'
:commit_url='commitUrl(pipeline)'
:commit-ref='ref(pipeline)'
:short-sha='commitSha(pipeline)'
:commit-url='commitUrl(pipeline)'
>
</commit>
</td>
Loading
Loading
Loading
Loading
@@ -40,8 +40,8 @@
%div
.nothing-here-block No pipelines to show
- else
.commit-icon-svg.hidden
= custom_icon("icon_commit")
.pipeline-svgs{"data" => {"commit-icon-svg" => custom_icon("icon_commit")} }
.icon_status_canceled.hidden
= custom_icon("icon_status_canceled")
.icon_status_running.hidden
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment