Commit 5e0ff933 authored by alish's avatar alish
Browse files

feat: shop order product comment in admin app

parent 7488039a
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -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 {
@@ -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']
							),
@@ -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',
@@ -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',
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@
				"NAME": "Име",
				"QTY": "КОЛ",
				"PRICE": "Цена",
				"IMAGE": "Изображение"
				"IMAGE": "Изображение",
				"COMMENT": "Коментар"
			}
		},
		"ORDER_SIDEBAR": {
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@
				"NAME": "Name",
				"QTY": "QTY",
				"PRICE": "Price",
				"IMAGE": "Image"
				"IMAGE": "Image",
				"COMMENT": "Коментар"
			}
		},
		"ORDER_SIDEBAR": {
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@
				"NAME": "Name",
				"QTY": "QTY",
				"PRICE": "Price",
				"IMAGE": "Image"
				"IMAGE": "Image",
				"COMMENT": "Comment"
			}
		},
		"ORDER_SIDEBAR": {
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@
				"NAME": "Name",
				"QTY": "QTY",
				"PRICE": "Price",
				"IMAGE": "Image"
				"IMAGE": "Image",
				"COMMENT": "Comment"
			}
		},
		"ORDER_SIDEBAR": {
Loading