Skip to content

Commit

Permalink
swap type from input to selector
Browse files Browse the repository at this point in the history
  • Loading branch information
dbistuer committed Nov 24, 2023
1 parent 2799f24 commit f71d620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/app/routes/route-create/route-create.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#description="ngModel">
</div>


<!-- Type selection -->
<div class="form-group mb-3">
<label class="control-label" for="type">Type</label>
Expand Down
10 changes: 4 additions & 6 deletions src/app/routes/route-create/route-create.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ import { AuthenticationBasicService } from 'src/app/login-basic/authentication-b
import { User } from 'src/app/login-basic/user';
import { Route } from '../route';
import { RouteService } from '../route.service';
import { Input } from '@angular/core';
import { UserService } from 'src/app/user/user.service';
import { PagedResourceCollection } from '@lagoshny/ngx-hateoas-client';
import { HttpClient, HttpClientModule } from '@angular/common/http';
import {environment} from '../../../environments/environment';
import { HttpClient} from '@angular/common/http';
import {environment} from "../../../environments/environment";

@Component({
selector: 'app-routes-create',
Expand Down Expand Up @@ -41,9 +40,8 @@ export class RouteCreateComponent implements OnInit {
this.creationDate = new Date();
this.http.get<any>(`${environment.API}/profile/routes`)
.subscribe(data => {
this.types = (data.alps.descriptor[0].descriptor[2].doc.value).split(',');
});

this.types = (data.alps.descriptor[0].descriptor[2].doc.value).split(',');
});

this.userService.getPage({ pageParams: { size: this.pageSize }, sort: { username: 'ASC' } }).subscribe(
(page: PagedResourceCollection<User>) => {
Expand Down

0 comments on commit f71d620

Please sign in to comment.