1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

application version

This commit is contained in:
Kyle Spearrin
2018-06-11 09:31:11 -04:00
parent 5d8e32222a
commit cfc3fae67c
5 changed files with 26 additions and 4 deletions

View File

@@ -7,7 +7,7 @@
</div>
<div class="col text-right">
Version 2.0.0
{{'versionNumber' | i18n : version}}
</div>
</div>
</div>

View File

@@ -1,9 +1,20 @@
import {
Component,
OnInit,
} from '@angular/core';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
@Component({
selector: 'app-footer',
templateUrl: 'footer.component.html',
})
export class FooterComponent { }
export class FooterComponent implements OnInit {
version: string;
constructor(private platformUtilsService: PlatformUtilsService) { }
ngOnInit() {
this.version = this.platformUtilsService.getApplicationVersion();
}
}

View File

@@ -547,5 +547,14 @@
},
"noItemsInList": {
"message": "There are no items to list."
},
"versionNumber": {
"message": "Version $VERSION_NUMBER$",
"placeholders": {
"version_number": {
"content": "$1",
"example": "1.2.3"
}
}
}
}

View File

@@ -100,7 +100,7 @@ export class WebPlatformUtilsService implements PlatformUtilsService {
}
getApplicationVersion(): string {
return '1.2.3';
return process.env.APPLICATION_VERSION || '-';
}
supportsU2f(win: Window): boolean {