We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 965565f commit a4add9bCopy full SHA for a4add9b
src/services/service.ts
@@ -525,8 +525,17 @@ export function getClusterListMinWithoutAuth(): Promise<ClusterListResponse> {
525
return get(URL)
526
}
527
528
-export function dashboardAccessed() {
529
- return get(Routes.DASHBOARD_ACCESSED)
+export const dashboardAccessed = async () => {
+ try {
530
+ const isDashboardAccessed = localStorage.getItem('isDashboardAccessed')
531
+ if (isDashboardAccessed === 'true') {
532
+ return
533
+ }
534
+ await get(Routes.DASHBOARD_ACCESSED)
535
+ localStorage.setItem('isDashboardAccessed', 'true')
536
+ } catch {
537
+ // do noting
538
539
540
541
export function dashboardLoggedIn() {
0 commit comments