pleroma-fe/src/components/settings_modal/tabs/version_tab.js
Sam Therapy b51d511983
All checks were successful
continuous-integration/drone/push Build is passing
Add the froth changes back
This took forever and was really slow

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-04-08 17:12:46 +02:00

25 lines
659 B
JavaScript

import { extractCommit } from 'src/services/version/version.service'
const pleromaFeCommitUrl = 'https://git.froth.zone/Sam/pleroma-fe/commit/'
const pleromaBeCommitUrl = 'https://git.froth.zone/Sam/pleroma/commit/'
const VersionTab = {
data () {
const instance = this.$store.state.instance
return {
backendVersion: instance.backendVersion,
frontendVersion: instance.frontendVersion
}
},
computed: {
frontendVersionLink () {
return pleromaFeCommitUrl + this.frontendVersion
},
backendVersionLink () {
return pleromaBeCommitUrl + extractCommit(this.backendVersion)
}
}
}
export default VersionTab