diff --git a/Frontend/src/app/modules/layers/layers-list/layers-list.component.ts b/Frontend/src/app/modules/layers/layers-list/layers-list.component.ts index e0208fc..6d30fc6 100644 --- a/Frontend/src/app/modules/layers/layers-list/layers-list.component.ts +++ b/Frontend/src/app/modules/layers/layers-list/layers-list.component.ts @@ -29,7 +29,7 @@ export class LayersListComponent implements OnInit { LayerType = LayerType; start = 0; - limit = 200; + limit = 50; end: number = this.limit + this.start; loadingInProgress = false; diff --git a/Frontend/src/environments/environment.ts b/Frontend/src/environments/environment.ts index 98dcec0..b4ed8cc 100644 --- a/Frontend/src/environments/environment.ts +++ b/Frontend/src/environments/environment.ts @@ -7,8 +7,8 @@ export const environment = { appName: "LOCAL_DiunaBI", production: false, api: { - //url: "http://localhost:5400/api" - url: "https://diunabi-morska.bim-it.pl/api" + url: "http://localhost:5400/api" + //url: "https://diunabi-morska.bim-it.pl/api" }, google: { clientId: "107631825312-bkfe438ehr9k9ecb2h76g802tj6advma.apps.googleusercontent.com" diff --git a/WebAPI/Controllers/LayersController.cs b/WebAPI/Controllers/LayersController.cs index 0b135b7..e9ba7fa 100644 --- a/WebAPI/Controllers/LayersController.cs +++ b/WebAPI/Controllers/LayersController.cs @@ -397,7 +397,7 @@ namespace WebAPI.Controllers }); } - public Layer AddLayer(Layer input, Guid currentUserId) + internal Layer AddLayer(Layer input, Guid currentUserId) { input.CreatedById = currentUserId; input.ModifiedById = currentUserId; @@ -408,8 +408,7 @@ namespace WebAPI.Controllers db.SaveChanges(); return input; } - - public void SaveRecords(Guid id, ICollection records, Guid currentUserId) + internal void SaveRecords(Guid id, ICollection records, Guid currentUserId) { try {