Commit d887e247 authored by sunko's avatar sunko
Browse files

feat: implemented functionality about product availability

parent 8275a5d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
	"name": "@ever-platform/admin-web-angular",
	"version": "0.3.0",
	"version": "0.3.3",
	"description": "Ever Admin",
	"license": "AGPL-3.0",
	"homepage": "https://ever.co",
+0 −1
Original line number Diff line number Diff line
@@ -272,7 +272,6 @@ export class WarehousesService {

		return res.data['getCountOfMerchants'];
	}

	protected _warehouseFactory(warehouse: IWarehouse) {
		return warehouse == null ? null : new Warehouse(warehouse);
	}
+2 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@ import { ProductImageComponent } from './product-image/product-image.component';
import { CustomerEmailComponent } from './customer-email/customer-email.component';
import { CustomerPhoneComponent } from './customer-phone/customer-phone.component';
import { CheckboxComponent } from './customer-orders-table/checkbox/checkbox.component';
import { IsAviavableCheckBox } from './store-product-is-aviavable-checkbox/is-aviavable-checkbox.component';

const COMPONENTS = [
	PriceCountInputComponent,
@@ -28,6 +29,7 @@ const COMPONENTS = [
	ProductImageComponent,
	CustomerEmailComponent,
	CustomerPhoneComponent,
	IsAviavableCheckBox,
];

@NgModule({
+9 −0
Original line number Diff line number Diff line
@@ -19,6 +19,8 @@ import { ProductLocalesService } from '@modules/client.common.angular2/locale/pr
import { ProductsCategoryService } from '@app/@core/data/productsCategory.service';
import Product from '@modules/server.common/entities/Product';
import { StoreProductImageComponent } from '@app/@shared/render-component/store-products-table/store-product-image/store-product-image.component';
import { CheckboxComponent } from '@app/@shared/render-component/customer-orders-table/checkbox/checkbox.component';
import { IsAviavableCheckBox } from '@app/@shared/render-component/store-product-is-aviavable-checkbox/is-aviavable-checkbox.component';

export interface WarehouseProductViewModel {
	id: string;
@@ -32,6 +34,7 @@ export interface WarehouseProductViewModel {
	storeId: string;
	product: Product;
	allCategories: any[];
	isProductAviavable: boolean;
}

@Component({
@@ -111,6 +114,7 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy {
				storeId,
				product: product.product,
				allCategories: this.categoriesInfo,
				isProductAviavable: product.isProductAviavable,
			};
		});

@@ -211,6 +215,11 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy {
								type: 'custom',
								renderComponent: StoreProductAmountComponent,
							},
							isAviavable: {
								title: 'Aviavability',
								type: 'custom',
								renderComponent: IsAviavableCheckBox,
							},
						},
						pager: {
							display: true,
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
	"name": "@ever-platform/common-angular",
	"description": "Ever Platform Shared Angular Core",
	"license": "AGPL-3.0",
	"version": "0.3.0",
	"version": "0.3.1",
	"homepage": "https://ever.co",
	"repository": {
		"type": "git",
Loading