Loading packages/admin-web-angular/package.json +1 −1 Original line number Diff line number Diff line { "name": "@ever-platform/admin-web-angular", "version": "0.3.3", "version": "0.3.7", "description": "Ever Admin", "license": "AGPL-3.0", "homepage": "https://ever.co", Loading packages/admin-web-angular/src/app/@shared/render-component/render-components.module.ts +2 −2 Original line number Diff line number Diff line Loading @@ -14,7 +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'; import { IsAvailableCheckBox } from './store-product-is-available-checkbox/is-available-checkbox.component'; const COMPONENTS = [ PriceCountInputComponent, Loading @@ -29,7 +29,7 @@ const COMPONENTS = [ ProductImageComponent, CustomerEmailComponent, CustomerPhoneComponent, IsAviavableCheckBox, IsAvailableCheckBox, ]; @NgModule({ Loading packages/admin-web-angular/src/app/@shared/render-component/store-product-is-aviavable-checkbox/is-aviavable-checkbox.component.ts→packages/admin-web-angular/src/app/@shared/render-component/store-product-is-available-checkbox/is-available-checkbox.component.ts +6 −5 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ import { WarehouseProductsRouter } from '@modules/client.common.angular2/routers `, ], }) export class IsAviavableCheckBox implements ViewCell, OnInit { export class IsAvailableCheckBox implements ViewCell, OnInit { @Input() rowData: any; @Input() value: string; isChecked: boolean; Loading @@ -32,18 +32,19 @@ export class IsAviavableCheckBox implements ViewCell, OnInit { productId: string; constructor(private warehouseProductRouter: WarehouseProductsRouter) {} ngOnInit() { this.isChecked = this.rowData.isProductAviavable; this.isChecked = this.rowData.isProductAvailable; this.wareHouseId = this.rowData.storeId; this.productId = this.rowData.product.id; console.warn(this.rowData); } async clickHandler() { this.isChecked = !this.isChecked; this.rowData.isProductAviavable = this.isChecked; await this.warehouseProductRouter.changeProductAviavability( this.rowData.isProductAvailable = this.isChecked; await this.warehouseProductRouter.changeProductAvailability( this.wareHouseId, this.productId, this.rowData.isProductAviavable this.rowData.isProductAvailable ); } } packages/admin-web-angular/src/app/@shared/warehouse-product/forms/warehouse-products-table/warehouse-products-table.component.ts +4 −4 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ import { ProductsCategoryService } from '@app/@core/data/productsCategory.servic 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'; import { IsAvailableCheckBox } from '@app/@shared/render-component/store-product-is-available-checkbox/is-available-checkbox.component'; export interface WarehouseProductViewModel { id: string; Loading @@ -34,7 +34,7 @@ export interface WarehouseProductViewModel { storeId: string; product: Product; allCategories: any[]; isProductAviavable: boolean; isProductAvailable: boolean; } @Component({ Loading Loading @@ -114,7 +114,7 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy { storeId, product: product.product, allCategories: this.categoriesInfo, isProductAviavable: product.isProductAviavable, isProductAvailable: product.isProductAvailable, }; }); Loading Loading @@ -220,7 +220,7 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy { isAvailable: { title: availability, type: 'custom', renderComponent: IsAviavableCheckBox, renderComponent: IsAvailableCheckBox, }, }, pager: { Loading packages/common-angular/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ "name": "@ever-platform/common-angular", "description": "Ever Platform Shared Angular Core", "license": "AGPL-3.0", "version": "0.3.1", "version": "0.3.4", "homepage": "https://ever.co", "repository": { "type": "git", Loading Loading
packages/admin-web-angular/package.json +1 −1 Original line number Diff line number Diff line { "name": "@ever-platform/admin-web-angular", "version": "0.3.3", "version": "0.3.7", "description": "Ever Admin", "license": "AGPL-3.0", "homepage": "https://ever.co", Loading
packages/admin-web-angular/src/app/@shared/render-component/render-components.module.ts +2 −2 Original line number Diff line number Diff line Loading @@ -14,7 +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'; import { IsAvailableCheckBox } from './store-product-is-available-checkbox/is-available-checkbox.component'; const COMPONENTS = [ PriceCountInputComponent, Loading @@ -29,7 +29,7 @@ const COMPONENTS = [ ProductImageComponent, CustomerEmailComponent, CustomerPhoneComponent, IsAviavableCheckBox, IsAvailableCheckBox, ]; @NgModule({ Loading
packages/admin-web-angular/src/app/@shared/render-component/store-product-is-aviavable-checkbox/is-aviavable-checkbox.component.ts→packages/admin-web-angular/src/app/@shared/render-component/store-product-is-available-checkbox/is-available-checkbox.component.ts +6 −5 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ import { WarehouseProductsRouter } from '@modules/client.common.angular2/routers `, ], }) export class IsAviavableCheckBox implements ViewCell, OnInit { export class IsAvailableCheckBox implements ViewCell, OnInit { @Input() rowData: any; @Input() value: string; isChecked: boolean; Loading @@ -32,18 +32,19 @@ export class IsAviavableCheckBox implements ViewCell, OnInit { productId: string; constructor(private warehouseProductRouter: WarehouseProductsRouter) {} ngOnInit() { this.isChecked = this.rowData.isProductAviavable; this.isChecked = this.rowData.isProductAvailable; this.wareHouseId = this.rowData.storeId; this.productId = this.rowData.product.id; console.warn(this.rowData); } async clickHandler() { this.isChecked = !this.isChecked; this.rowData.isProductAviavable = this.isChecked; await this.warehouseProductRouter.changeProductAviavability( this.rowData.isProductAvailable = this.isChecked; await this.warehouseProductRouter.changeProductAvailability( this.wareHouseId, this.productId, this.rowData.isProductAviavable this.rowData.isProductAvailable ); } }
packages/admin-web-angular/src/app/@shared/warehouse-product/forms/warehouse-products-table/warehouse-products-table.component.ts +4 −4 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ import { ProductsCategoryService } from '@app/@core/data/productsCategory.servic 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'; import { IsAvailableCheckBox } from '@app/@shared/render-component/store-product-is-available-checkbox/is-available-checkbox.component'; export interface WarehouseProductViewModel { id: string; Loading @@ -34,7 +34,7 @@ export interface WarehouseProductViewModel { storeId: string; product: Product; allCategories: any[]; isProductAviavable: boolean; isProductAvailable: boolean; } @Component({ Loading Loading @@ -114,7 +114,7 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy { storeId, product: product.product, allCategories: this.categoriesInfo, isProductAviavable: product.isProductAviavable, isProductAvailable: product.isProductAvailable, }; }); Loading Loading @@ -220,7 +220,7 @@ export class WarehouseProductsComponent implements OnInit, OnDestroy { isAvailable: { title: availability, type: 'custom', renderComponent: IsAviavableCheckBox, renderComponent: IsAvailableCheckBox, }, }, pager: { Loading
packages/common-angular/package.json +1 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ "name": "@ever-platform/common-angular", "description": "Ever Platform Shared Angular Core", "license": "AGPL-3.0", "version": "0.3.1", "version": "0.3.4", "homepage": "https://ever.co", "repository": { "type": "git", Loading