Loading packages/admin-web-angular/src/app/pages/+orders/+order/order-products/order-products.component.ts +10 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,8 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { async loadDataSmartTable() { const loadData = () => { if (this.order) { console.error(); const productsVM = this.order.products.map( (product: OrderProduct) => { return { Loading @@ -89,6 +91,7 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { price: product.price, qty: product.count, product: product.product, comment: product.comment, image: this._productLocalesService.getTranslate( product.product['images'] ), Loading Loading @@ -238,10 +241,11 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { getTranslate('IMAGE'), getTranslate('NAME'), getTranslate('QTY'), getTranslate('PRICE') getTranslate('PRICE'), getTranslate('COMMENT') ) .pipe(takeUntil(this._ngDestroy$)) .subscribe(([id, image, name, qty, price]) => { .subscribe(([id, image, name, qty, price, comment]) => { this.settingsSmartTable = { actions: false, selectMode: 'multi', Loading @@ -251,6 +255,10 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { renderComponent: ProductTitleRedirectComponent, type: 'custom', }, comment: { title: comment, width: '15%', }, qty: { title: qty, class: 'text-center', Loading packages/admin-web-angular/src/assets/i18n/bg-BG.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Име", "QTY": "КОЛ", "PRICE": "Цена", "IMAGE": "Изображение" "IMAGE": "Изображение", "COMMENT": "Коментар" } }, "ORDER_SIDEBAR": { Loading packages/admin-web-angular/src/assets/i18n/bg.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Коментар" } }, "ORDER_SIDEBAR": { Loading packages/admin-web-angular/src/assets/i18n/en-US.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Comment" } }, "ORDER_SIDEBAR": { Loading packages/admin-web-angular/src/assets/i18n/en.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Comment" } }, "ORDER_SIDEBAR": { Loading Loading
packages/admin-web-angular/src/app/pages/+orders/+order/order-products/order-products.component.ts +10 −2 Original line number Diff line number Diff line Loading @@ -82,6 +82,8 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { async loadDataSmartTable() { const loadData = () => { if (this.order) { console.error(); const productsVM = this.order.products.map( (product: OrderProduct) => { return { Loading @@ -89,6 +91,7 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { price: product.price, qty: product.count, product: product.product, comment: product.comment, image: this._productLocalesService.getTranslate( product.product['images'] ), Loading Loading @@ -238,10 +241,11 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { getTranslate('IMAGE'), getTranslate('NAME'), getTranslate('QTY'), getTranslate('PRICE') getTranslate('PRICE'), getTranslate('COMMENT') ) .pipe(takeUntil(this._ngDestroy$)) .subscribe(([id, image, name, qty, price]) => { .subscribe(([id, image, name, qty, price, comment]) => { this.settingsSmartTable = { actions: false, selectMode: 'multi', Loading @@ -251,6 +255,10 @@ export class OrderProductsComponent implements OnInit, OnChanges, OnDestroy { renderComponent: ProductTitleRedirectComponent, type: 'custom', }, comment: { title: comment, width: '15%', }, qty: { title: qty, class: 'text-center', Loading
packages/admin-web-angular/src/assets/i18n/bg-BG.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Име", "QTY": "КОЛ", "PRICE": "Цена", "IMAGE": "Изображение" "IMAGE": "Изображение", "COMMENT": "Коментар" } }, "ORDER_SIDEBAR": { Loading
packages/admin-web-angular/src/assets/i18n/bg.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Коментар" } }, "ORDER_SIDEBAR": { Loading
packages/admin-web-angular/src/assets/i18n/en-US.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Comment" } }, "ORDER_SIDEBAR": { Loading
packages/admin-web-angular/src/assets/i18n/en.json +2 −1 Original line number Diff line number Diff line Loading @@ -28,7 +28,8 @@ "NAME": "Name", "QTY": "QTY", "PRICE": "Price", "IMAGE": "Image" "IMAGE": "Image", "COMMENT": "Comment" } }, "ORDER_SIDEBAR": { Loading