1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[EC-826] Merge license sync feature branch to master (#4503)

* [EC-816] Separate cloud and selfhosted subscription components (#4383)

* [EC-636] Add license sync to web vault (#4441)

* [EC-1036] Show correct last license sync date (#4558)

* [EC-1044] Fix: accidentally changed shared i18n string
This commit is contained in:
Thomas Rittson
2023-01-31 07:41:23 +10:00
committed by GitHub
parent b208866109
commit e622d7431f
22 changed files with 891 additions and 597 deletions

View File

@@ -2,6 +2,7 @@ import { BaseResponse } from "../response/base.response";
export class BillingSyncConfigApi extends BaseResponse {
billingSyncKey: string;
lastLicenseSync: Date;
constructor(data: any) {
super(data);
@@ -9,5 +10,10 @@ export class BillingSyncConfigApi extends BaseResponse {
return;
}
this.billingSyncKey = this.getResponseProperty("BillingSyncKey");
const lastLicenseSyncString = this.getResponseProperty("LastLicenseSync");
if (lastLicenseSyncString) {
this.lastLicenseSync = new Date(lastLicenseSyncString);
}
}
}