Contentfooter

- brackets
- use BUILD_COMMIT and BUILD_COMMIT_SHORT
- check for null value instead of 0000000
This commit is contained in:
Ulf Gebhardt 2021-09-15 10:25:41 +02:00
parent 9024534eac
commit 3eb2e4b541
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -16,11 +16,11 @@
App version {{ version }} App version {{ version }}
</a> </a>
<a <a
v-if="shortHash !== '00000000'" v-if="hash"
:href="'https://github.com/gradido/gradido/commit/' + hash" :href="'https://github.com/gradido/gradido/commit/' + hash"
target="_blank" target="_blank"
> >
{{ shortHash }} ({{ shortHash }})
</a> </a>
</div> </div>
</b-col> </b-col>
@ -66,8 +66,8 @@ export default {
return { return {
year: new Date().getFullYear(), year: new Date().getFullYear(),
version: CONFIG.APP_VERSION, version: CONFIG.APP_VERSION,
hash: CONFIG.COMMIT_HASH, hash: CONFIG.BUILD_COMMIT,
shortHash: CONFIG.COMMIT_HASH.substr(0, 8), shortHash: CONFIG.BUILD_COMMIT_SHORT,
} }
}, },
} }