Skip to content

Commit

Permalink
Changed card list style
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Sep 9, 2020
1 parent eef5c3a commit bd60749
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class="full_width"
:progress="item.progress"/>
<progress-list
class="no_bullets"
:table-mode="true"
:progress="item.progress"/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<div class="progress-bar horizontal-left-content">
<div
class="progress-bar horizontal-left-content"
:style="{
backgroundColor: 'gray',
height: '10px'
}">
<div
v-for="(value, key) in colors"
:key="key"
Expand Down
27 changes: 21 additions & 6 deletions app/javascript/vue/tasks/dwca_import/components/ProgressList.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
<template>
<ul class="no_bullets">
<li
class="flex-separate"
v-for="(color, property) in colors"
:key="property">
<span>{{ property }}: <b :style="{ color: color }">{{ showTotal(progress[property]) }}</b></span>
</li>
<template v-if="tableMode">
<li
style="border-bottom: 1px solid #EAEAEA"
class="flex-separate padding-small"
v-for="(color, property) in colors"
:key="property">
<span>{{ property }}</span> <b :style="{ color: color }">{{ showTotal(progress[property]) }}</b>
</li>
</template>
<template v-else>
<li
class="flex-separate"
v-for="(color, property) in colors"
:key="property">
<span>{{ property }}: <b :style="{ color: color }">{{ showTotal(progress[property]) }}</b></span>
</li>
</template>
</ul>
</template>

Expand All @@ -18,6 +29,10 @@ export default {
progress: {
type: Object,
required: true
},
tableMode: {
type: Boolean,
default: false
}
},
data () {
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/vue/tasks/dwca_import/const/importColors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
Imported: 'blue',
Ready: 'green',
NotReady: 'gray',
NotReady: 'black',
Errored: 'red',
Failed: 'orange',
Unsupported: 'brown'
Expand Down

0 comments on commit bd60749

Please sign in to comment.