page
Currently wrong date is being displayed if we hover of the Token Expires
filed in the Clusters list table in Manage Clusters page. This PR
intends to fix this issue.
Fixes: https://tracker.ceph.com/issues/69172
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
[class.icon-danger-color]="row.remainingDays < 2"
[class.icon-warning-color]="row.remainingDays < 8"
class="{{ icons.warning }}"></i>
- <span title="{{ value | cdDate }}">{{ row.remainingTimeWithoutSeconds / 1000 | duration }}</span>
+ <span title="{{ row.expiryDate }}">{{ row.remainingTimeWithoutSeconds / 1000 | duration }}</span>
</span>
<span *ngIf="row.remainingTimeWithoutSeconds <= 0 && row.remainingDays <=0 && row.cluster_alias !== 'local-cluster'">
<i i18n-title
cluster['ttl']
);
cluster['remainingDays'] = this.getRemainingDays(cluster['ttl']);
+ cluster['expiryDate'] = new Date(Date.now() + cluster['ttl']).toLocaleString();
}
});
}