mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
[HIMA-82] QA feedback
Date format changed to m/YYYY in product details.
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
</div>
|
||||
<div class="publication-format-pages standart-text">
|
||||
<div class="publication">
|
||||
<span>{{product.publicationDate}}</span>
|
||||
<span>{{formatDate(product.publicationDate)}}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>|</span>
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
.icon {
|
||||
height: 17px;
|
||||
margin-top: 2px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.stock-label span {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { ProcessState, ProcessStateModel } from 'src/app/core/store/state/proces
|
||||
import { Select } from '@ngxs/store';
|
||||
import { stateNameErrorMessage } from '@ngxs/store/src/decorators/state';
|
||||
import { Process } from 'src/app/core/models/process.model';
|
||||
import { formatDate } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-product-details',
|
||||
@@ -145,4 +146,9 @@ export class ProductDetailsComponent implements OnInit {
|
||||
cartActionCompleted(open: boolean) {
|
||||
// Logic if needed
|
||||
}
|
||||
|
||||
formatDate(date: string): string {
|
||||
const dateToFormat = new Date(date);
|
||||
return `${dateToFormat.getMonth()}/${dateToFormat.getFullYear()}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user