Skip to content

Commit

Permalink
fix(settings): better tag display etc
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Feb 23, 2023
1 parent f4751fe commit 1743ef1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/services/meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ import { defaultOptions } from '../../stores/options/options.functions';
})
export class MetaService {

private versionInfo: any = { tag: 'v.local', semverString: '', raw: 'v.local', hash: 'v.local' };
private versionInfo: any = { tag: '', semverString: '', raw: 'v.local', hash: 'v.local', distance: -1 };
public get version(): string {
if(this.versionInfo.distance >= 0 && this.versionInfo.tag) {
return `${this.versionInfo.tag} (${this.versionInfo.hash})`;
}

return this.versionInfo.tag
|| this.versionInfo.semverString
|| this.versionInfo.raw
Expand Down

0 comments on commit 1743ef1

Please sign in to comment.