fix: multiple project sources key conflicts

This commit is contained in:
Adrien Marquès 2022-10-19 11:42:44 +02:00
parent 54c70ce873
commit 8c83e0b84c
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 3 additions and 3 deletions

View File

@ -39,11 +39,11 @@
<div :key="'desc-'+proj.name" class='desc' v-html='proj.info[$i18n.locale]'></div>
<template v-if='proj.source != null'>
<template v-for='src in proj.source'>
<div :key="'src-icon-'+proj.name+src" class='src-icon'>
<template v-for='(src, i) in proj.source'>
<div :key="'src-icon-'+proj.name+'-'+i" class='src-icon'>
<img src='../assets/timeline/src.svg' />
</div>
<div :key="'src-'+proj.name+src" class='src'>
<div :key="'src-'+proj.name+'-'+i" class='src'>
{{ $t('project.sources') }} <a :href='src.link'>{{ src.name }}</a> <span>({{ proj.commits || src.commits }} commits)</span>
</div>
</template>