Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #331 from analytics-ufcg/corrige_bug_pl
Browse files Browse the repository at this point in the history
Corrige bug pl
  • Loading branch information
jairNeto authored Jun 20, 2019
2 parents fc6e39f + eab5999 commit 7c454ed
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 34 deletions.
6 changes: 3 additions & 3 deletions src/components/card/ProposicaoHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:key="i"
:pauta="pauta"
:dateRef="dateRef"/>
<arquivada-tag :status="prop.lastEtapa.status"/>
<text-tag :status="prop.lastEtapa.status" />
</div>
<temas :temas="prop.tema"/>
<div>
Expand All @@ -28,7 +28,7 @@ import FormaApreciacao from './collapsed/FormaApreciacao.vue'
import Fases from './collapsed/Fases.vue'
import TemperatureBar from './collapsed/TemperatureBar.vue'
import PautaTag from './collapsed/PautaTag'
import ArquivadaTag from './collapsed/ArquivadaTag'
import TextTag from './collapsed/TextTag'
import Temas from './collapsed/Temas.vue'
import { mapState, mapActions } from 'vuex'
Expand All @@ -45,7 +45,7 @@ export default {
Fases,
TemperatureBar,
PautaTag,
ArquivadaTag,
TextTag,
Temas
},
methods: {
Expand Down
31 changes: 0 additions & 31 deletions src/components/card/collapsed/ArquivadaTag.vue

This file was deleted.

36 changes: 36 additions & 0 deletions src/components/card/collapsed/TextTag.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<template>
<div v-if="formattedStatus">
<span class="tag">{{formattedStatus}}</span>
</div>
</template>

<script>
export default {
name: 'TextTag',
props: {
status: String
},
computed: {
formattedStatus () {
let result = ''
switch (this.status) {
case 'Lei':
result = 'Transformada em Lei'
break
case 'Arquivada':
result = 'Arquivada'
break
}
return result
}
}
}
</script>

<style lang="scss" scoped>
.tag {
font-size: 9pt;
}
</style>

0 comments on commit 7c454ed

Please sign in to comment.