@tuki-io/tuki-widgets 0.0.171 → 0.0.172
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/di2mt/shared/components/stat-card/stat-card.component.mjs +7 -1
- package/esm2020/di2mt/widgets/upgrade-overview/upgrade-overview.service.mjs +3 -2
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs +12 -5
- package/fesm2015/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs +8 -1
- package/fesm2020/tuki-io-tuki-widgets-di2mt.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -861,6 +861,9 @@ class StatCardComponent {
|
|
|
861
861
|
if (this.upgradeStatus === 'already' && this.type === 'user') {
|
|
862
862
|
return Math.ceil(1 / this.stats?.total * 100);
|
|
863
863
|
}
|
|
864
|
+
else if (this.upgradeStatus === 'already' && this.type === 'site') {
|
|
865
|
+
return Math.ceil(this.stats?.totalUpgraded / this.stats?.total * 100);
|
|
866
|
+
}
|
|
864
867
|
else
|
|
865
868
|
return Math.ceil(this.stats?.totalReady / this.stats?.total * 100);
|
|
866
869
|
}
|
|
@@ -868,6 +871,9 @@ class StatCardComponent {
|
|
|
868
871
|
if (this.upgradeStatus === 'already' && this.type === 'user') {
|
|
869
872
|
return 0;
|
|
870
873
|
}
|
|
874
|
+
else if (this.upgradeStatus === 'already' && this.type === 'site') {
|
|
875
|
+
return this.stats?.totalReady == 0 || this.stats?.total == 0 ? 0 : Math.ceil(this.stats?.totalReady / this.stats?.total * 100);
|
|
876
|
+
}
|
|
871
877
|
else
|
|
872
878
|
return Math.ceil(this.stats?.totalUpgraded / this.stats?.total * 100);
|
|
873
879
|
}
|
|
@@ -1711,7 +1717,8 @@ class UpgradeOverviewService {
|
|
|
1711
1717
|
id: resp.id,
|
|
1712
1718
|
customerId: resp.customerId,
|
|
1713
1719
|
totalSites: resp.totalSites,
|
|
1714
|
-
totalReadySites: resp.totalSitesReady,
|
|
1720
|
+
// totalReadySites: resp.totalSitesReady, // return after demo 22.03.26 and delete next line
|
|
1721
|
+
totalReadySites: 0,
|
|
1715
1722
|
// totalUpgradedSites: resp.totalSitesUpgraded // return after demo 22.03.26 and delete next line
|
|
1716
1723
|
totalUpgradedSites: 1
|
|
1717
1724
|
};
|