mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 16:25:22 +03:00
Standardised configurator version naming.
This commit is contained in:
parent
515f650055
commit
4480621c14
12 changed files with 221 additions and 181 deletions
|
@ -29,8 +29,17 @@ const CONFIGURATOR = {
|
|||
virtualApiVersion: '0.0.1',
|
||||
cliActive: false,
|
||||
cliValid: false,
|
||||
gitChangesetId: 'unknown',
|
||||
productName: 'Betaflight Configurator',
|
||||
version: '0.0.1',
|
||||
gitRevision: 'norevision',
|
||||
latestVersion: '0.0.1',
|
||||
latestVersionReleaseUrl: 'https://github.com/betaflight/betaflight-configurator/releases',
|
||||
|
||||
getDisplayVersion: function () {
|
||||
if (this.version.indexOf(this.gitRevision) === -1) {
|
||||
return `${this.version} (${this.gitRevision})`;
|
||||
} else {
|
||||
return `${this.version}`;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue