Skip to content

Commit

Permalink
core: frontend: App: Add git_info_url
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Jan 28, 2022
1 parent 4081849 commit bce0c12
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion core/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,18 @@
<power-menu />
<settings-menu />
</v-container>
<span class="build_info">Version: {{ git_info }}</span>
<span
class="build_info"
>
Version:
<a
target="_blank"
rel="noopener noreferrer"
:href="git_info_url"
>
{{ git_info }}
</a>
</span>
<span class="build_info">Build: {{ build_date }}</span>
</v-container>
</v-navigation-drawer>
Expand All @@ -135,6 +146,7 @@
import Vue from 'vue'
import settings from '@/libs/settings'
import { convertGitDescribeToUrl } from '@/utils/helper_functions.ts'
import BackendStatusChecker from './components/app/BackendStatusChecker.vue'
import ErrorMessage from './components/app/ErrorMessage.vue'
Expand Down Expand Up @@ -261,6 +273,9 @@ export default Vue.extend({
git_info(): string {
return process.env.VUE_APP_GIT_DESCRIBE
},
git_info_url(): string {
return convertGitDescribeToUrl(process.env.VUE_APP_GIT_DESCRIBE)
},
build_date(): string {
return process.env.VUE_APP_BUILD_DATE
},
Expand Down

0 comments on commit bce0c12

Please sign in to comment.