From 135df085140d63b0d037d74eda9f8735f88f0fef Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Mon, 17 Jun 2024 15:42:17 +0200 Subject: [PATCH] bugfixing --- .../search-select/search-select.component.html | 1 + .../_components/search-select/search-select.component.ts | 4 +--- .../documents/new-document/new-document.component.html | 6 ++++-- .../src/app/_views/posts/new-post/new-post.component.html | 5 +++-- .../src/app/_views/posts/new-post/new-post.component.ts | 1 - .../src/app/_views/posts/post-list/post-list.component.ts | 4 +++- .../products/assign-product/assign-product.component.html | 8 +++++--- 7 files changed, 17 insertions(+), 12 deletions(-) diff --git a/matsen-tool/src/app/_components/search-select/search-select.component.html b/matsen-tool/src/app/_components/search-select/search-select.component.html index 5ae07c4..3d6d2e5 100644 --- a/matsen-tool/src/app/_components/search-select/search-select.component.html +++ b/matsen-tool/src/app/_components/search-select/search-select.component.html @@ -26,6 +26,7 @@ + X{{element.imageUrl}}X
+ - +
+ - +
diff --git a/matsen-tool/src/app/_views/posts/new-post/new-post.component.html b/matsen-tool/src/app/_views/posts/new-post/new-post.component.html index 88f4947..3be3244 100644 --- a/matsen-tool/src/app/_views/posts/new-post/new-post.component.html +++ b/matsen-tool/src/app/_views/posts/new-post/new-post.component.html @@ -11,6 +11,7 @@
+ - + class="form-control" disabled value="{{product.name}}"/>
diff --git a/matsen-tool/src/app/_views/posts/new-post/new-post.component.ts b/matsen-tool/src/app/_views/posts/new-post/new-post.component.ts index f5f9d30..a2aa401 100644 --- a/matsen-tool/src/app/_views/posts/new-post/new-post.component.ts +++ b/matsen-tool/src/app/_views/posts/new-post/new-post.component.ts @@ -49,7 +49,6 @@ export class NewPostComponent implements OnInit { } ngOnInit(): void { - console.log(this.posting); this.postForm = FormGroupInitializer.initFormGroup(this.postForm, this.posting); } diff --git a/matsen-tool/src/app/_views/posts/post-list/post-list.component.ts b/matsen-tool/src/app/_views/posts/post-list/post-list.component.ts index fa2ca06..295c868 100644 --- a/matsen-tool/src/app/_views/posts/post-list/post-list.component.ts +++ b/matsen-tool/src/app/_views/posts/post-list/post-list.component.ts @@ -11,7 +11,6 @@ import { } from "@app/core/api/v1"; import {MatTableDataSource} from "@angular/material/table"; import {NewPostComponent} from "@app/_views/posts/new-post/new-post.component"; -import {NgbModal, NgbModalOptions} from "@ng-bootstrap/ng-bootstrap"; import {AppHelperService} from "@app/_helpers/app-helper.service"; import {PagingComponent} from "@app/_components/paging/paging.component"; import {NewCommentComponent} from "@app/_views/posts/new-comment/new-comment.component"; @@ -141,6 +140,9 @@ export class PostListComponent implements OnInit, AfterViewInit { if (this.partner !== undefined) { post.partnerIri = this.partner?.id; } + if (this.contact !== undefined) { + post.contactIri = this.contact.id; + } if (this.sale !== undefined) { post.partnerIri = this.sale?.partnerIri; post.productIri = this.sale?.productIri; diff --git a/matsen-tool/src/app/_views/products/assign-product/assign-product.component.html b/matsen-tool/src/app/_views/products/assign-product/assign-product.component.html index 2138cf6..89f429b 100644 --- a/matsen-tool/src/app/_views/products/assign-product/assign-product.component.html +++ b/matsen-tool/src/app/_views/products/assign-product/assign-product.component.html @@ -3,6 +3,7 @@
+ - +
- {{ 'form.product' | translate }}: + - +