Skip to content

Commit

Permalink
fix: renew check criteria on creation (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG authored Jan 16, 2024
1 parent 7a91674 commit 1007d23
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
>
</ocx-page-header>
<ocx-page-content>
<div *ngIf="!product && !loading" class="card px-3 align-items-center">
<div *ngIf="!product && changeMode !== 'NEW'" class="card px-3 align-items-center">
<p-message severity="error" styleClass="p-2" [text]="'VALIDATION.PRODUCT.NOT_EXISTS' | translate"></p-message>
</div>
<p-tabView *ngIf="product && !loading">
<p-tabView *ngIf="(product && !loading) || changeMode === 'NEW'">
<p-tabPanel id="product_detail_panel_props" [header]="'DIALOG.TABS.PROPERTIES' | translate">
<ps-product-props
[product]="product"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class ProductDetailComponent implements OnInit {
@ViewChild(ProductPropertyComponent, { static: false }) productPropsComponent!: ProductPropertyComponent

private apiPrefix = environment.apiPrefix
private productName: string
public productName: string
public product: Product | undefined
// usedInWorkspace: Workspace[] | undefined
public changeMode: ChangeMode = 'NEW'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
</ocx-search-criteria>

<ocx-page-content>
<div *ngIf="!product$" class="card px-3 align-items-center">
<p-message severity="error" styleClass="p-2" [text]="'VALIDATION.PRODUCT.NOT_EXISTS' | translate"></p-message>
</div>
<ng-container *ngIf="product$ | async as products">
<p-dataView
id="product_search_dataview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class ProductSearchComponent implements OnInit {
sortDropdownPlaceholder: data['ACTIONS.DATAVIEW.SORT_BY'],
filterInputPlaceholder: data['ACTIONS.DATAVIEW.FILTER'],
filterInputTooltip:
data['ACTIONS.DATAVIEW.FILTER_OF'] + data['PRODUCT.NAME'] + ', ' + data['PRODUCT.DESCRIPTION'],
data['ACTIONS.DATAVIEW.FILTER_OF'] + data['PRODUCT.NAME'] + ', ' + data['PRODUCT.DISPLAY_NAME'],
viewModeToggleTooltips: {
grid: data['ACTIONS.DATAVIEW.VIEW_MODE_GRID'],
list: data['ACTIONS.DATAVIEW.VIEW_MODE_LIST']
Expand Down

0 comments on commit 1007d23

Please sign in to comment.