Skip to content

Commit 1c0e9ab

Browse files
authored
Merge pull request ceph#61012 from rhcs-dashboard/fix-69172-main
mgr/dashboard: Show correct token expiration date in Manage Clusters page Reviewed-by: Afreen Misbah <[email protected]>
2 parents 3fa9339 + cb6d183 commit 1c0e9ab

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h4 class="mt-3">This cluster is already managed by cluster -
7777
[class.icon-danger-color]="row.remainingDays < 2"
7878
[class.icon-warning-color]="row.remainingDays < 8"
7979
class="{{ icons.warning }}"></i>
80-
<span title="{{ value | cdDate }}">{{ row.remainingTimeWithoutSeconds / 1000 | duration }}</span>
80+
<span title="{{ row.expiryDate }}">{{ row.remainingTimeWithoutSeconds / 1000 | duration }}</span>
8181
</span>
8282
<span *ngIf="row.remainingTimeWithoutSeconds <= 0 && row.remainingDays <=0 && row.cluster_alias !== 'local-cluster'">
8383
<i i18n-title

src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/multi-cluster/multi-cluster-list/multi-cluster-list.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class MultiClusterListComponent extends ListWithDetails implements OnInit
115115
cluster['ttl']
116116
);
117117
cluster['remainingDays'] = this.getRemainingDays(cluster['ttl']);
118+
cluster['expiryDate'] = new Date(Date.now() + cluster['ttl']).toLocaleString();
118119
}
119120
});
120121
}

0 commit comments

Comments
 (0)