+
{{data.key | titlecase | translate}} {{'dashboards' | translate}}
diff --git a/src/app/components/dynamic-hub/dynamic-hub.component.ts b/src/app/components/dynamic-hub/dynamic-hub.component.ts
index cd2c52d..49024a3 100644
--- a/src/app/components/dynamic-hub/dynamic-hub.component.ts
+++ b/src/app/components/dynamic-hub/dynamic-hub.component.ts
@@ -29,6 +29,7 @@ import { catchError, filter, map, mergeMap, take, tap } from 'rxjs/operators';
import { Card, CardService } from '../../services/card.service';
import { Action } from '../card/card.component';
import { HubAction, HubActionEnum, HubActionModalComponent } from '../hub-action-modal/hub-action-modal.component';
+import { KeyValue } from '@angular/common';
@Component({
selector: 'arlas-dynamic-hub',
@@ -214,6 +215,16 @@ export class DynamicHubComponent implements OnInit {
}
}
+ public publicAtTheEnd = (a: KeyValue, b: KeyValue): number => {
+ if (a.key !== this.PUBLIC_ORG && b.key === this.PUBLIC_ORG ) {
+ return -1;
+ }
+ if (a.key === this.PUBLIC_ORG && b.key !== this.PUBLIC_ORG) {
+ return 1;
+ }
+ return a.key > b.key ? 1 : (b.key > a.key ? -1 : 0);
+ };
+
private fetchCardsByUserOrganisation() {
let i = 0;
this.orgs.map(o => o.name).forEach(o => {