Skip to content

Commit

Permalink
feat(component): add system version
Browse files Browse the repository at this point in the history
  • Loading branch information
ldurans committed Jan 4, 2022
1 parent a549dc0 commit e0f7b5a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
24 changes: 24 additions & 0 deletions frontend/src/components/cSystemVersion.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<template>
<div class="text-caption text-center bg-grey-1 q-pa-sm">
Versão Sistema:
<q-badge
align="middle"
color="primary"
>
v{{ cVersion }}
</q-badge>
</div>
</template>
<script>
import packageEnv from '../../../package.json'
export default {
name: 'SystemVersion',
computed: {
cVersion () {
return packageEnv.version
}
}
}
</script>
<style>
</style>
8 changes: 7 additions & 1 deletion frontend/src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
<q-item-section>Sair</q-item-section>
</q-item>
<q-separator />
<q-item>
<q-item-section>
<cSystemVersion />
</q-item-section>
</q-item>

</q-list>
</q-menu>
Expand Down Expand Up @@ -208,6 +213,7 @@
</template>

<script>
import cSystemVersion from '../components/cSystemVersion.vue'
import { ListarWhatsapps } from 'src/service/sessoesWhatsapp'
import EssentialLink from 'components/EssentialLink.vue'
import socketInitial from './socketInitial'
Expand Down Expand Up @@ -333,7 +339,7 @@ const objMenuAdmin = [
export default {
name: 'MainLayout',
mixins: [socketInitial],
components: { EssentialLink, ModalUsuario, cStatusUsuario },
components: { EssentialLink, ModalUsuario, cStatusUsuario, cSystemVersion },
data () {
return {
username,
Expand Down

0 comments on commit e0f7b5a

Please sign in to comment.