mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-04-10 03:49:53 +00:00
Loading on map load
This commit is contained in:
parent
3023a8fde0
commit
e948954963
@ -30,5 +30,11 @@ g.node:hover {
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
display: flex; justify-content: center; align-items: center;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 100px;
|
||||
margin-left:-50px;
|
||||
margin-top: -50px;
|
||||
left: 50%;
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
<app-node-select-interface (onChooseInterface)="onChooseInterface($event)"></app-node-select-interface>
|
||||
</div>
|
||||
|
||||
<div class="loading-spinner">
|
||||
<div class="loading-spinner" *ngIf="isLoading">
|
||||
<mat-spinner color="primary">
|
||||
</mat-spinner>
|
||||
</div>
|
||||
|
@ -52,7 +52,7 @@ export class ProjectMapComponent implements OnInit {
|
||||
|
||||
private ws: Subject<any>;
|
||||
private drawLineMode = false;
|
||||
private isLoading = true;
|
||||
public isLoading = true;
|
||||
|
||||
@ViewChild(MapComponent) mapChild: MapComponent;
|
||||
|
||||
@ -123,7 +123,7 @@ export class ProjectMapComponent implements OnInit {
|
||||
|
||||
this.setUpMapCallbacks(project);
|
||||
this.setUpWS(project);
|
||||
this.isLoading = true;
|
||||
this.isLoading = false;
|
||||
});
|
||||
|
||||
|
||||
|
@ -8,3 +8,4 @@ img.logo-header {
|
||||
a.table-link {
|
||||
color: #0097a7;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user