update loop fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Lukas Bachschwell 2020-01-06 15:50:20 +01:00
parent 797960b91e
commit eafcdef2d0
Signed by: lbsadmin
GPG Key ID: CCC6AA87CC8DF425
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@
</el-header> </el-header>
<el-main class="skillbars"> <el-main class="skillbars">
<div style="position:relative;"> <div style="position:relative;">
<div v-for="skill in sortSkills(person.skills)" :key="skill.name" class="progress-item"> <div v-for="skill in person.skills" :key="skill.name" class="progress-item">
<span>{{ skill.name }}</span> <span>{{ skill.name }}</span>
<el-progress :percentage="skill.strength" /> <el-progress :percentage="skill.strength" />
</div> </div>
@ -64,6 +64,7 @@ export default {
}, },
methods: { methods: {
sortSkills(skills) { sortSkills(skills) {
// Currently not used pls sort manually
return skills.sort((a, b) => (a.strength > b.strength) ? -1 : 1) return skills.sort((a, b) => (a.strength > b.strength) ? -1 : 1)
} }
}} }}

View File

@ -32,7 +32,7 @@
<el-row v-if="results.length > 0" :gutter="8"> <el-row v-if="results.length > 0" :gutter="8">
<el-col v-for="person in results" :key="person.name" :xs="{span: 24}" style="margin-bottom:30px;"> <el-col v-for="person in results" :key="person.name" :xs="{span: 24}" style="margin-bottom:30px;">
<box-card v-key="person.name" :person="person" /> <box-card :key="person.name" :person="person" />
</el-col> </el-col>
</el-row> </el-row>
<el-row v-if="value.length > 0 && results.length == 0" style="background:#fff;padding:16px 16px 0;margin-bottom:32px;"> <el-row v-if="value.length > 0 && results.length == 0" style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">