Skip to content

Commit

Permalink
chore: clean up unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Aug 20, 2024
1 parent 5e9fcf4 commit 2ee9138
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 356 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
import { Validators } from '@angular/forms';

import { VCLFormFieldControlSchema, VCLFormFieldSchemas } from '@vcl/ng-vcl';

export const buildProductPriceFields: VCLFormFieldSchemas<VCLFormFieldControlSchema>[] =
[
{
name: 'currencyId',
label: 'Currency',
type: 'select',
// disabled: true,
defaultValue: '',
validators: [Validators.required],
params: {
placeholder: 'Select currency',
selectionMode: 'single',
clearable: false,
search: false,
options: [
{
label: 'USD',
value: 'USD',
},
{
label: 'EURO',
value: 'EUR',
},
],
},
hints: [
{
type: 'error',
error: 'required',
message: 'This field is required.',
},
],
},
{
name: 'regularPrice',
label: 'Regular price',
type: 'input',
validators: [Validators.required],
defaultValue: '',
params: {},
hints: [
{
type: 'error',
error: 'required',
message: 'This field is required.',
},
],
},
{
name: 'salePrice',
label: 'Sale price',
type: 'input',
validators: [Validators.required],
defaultValue: '',
params: {},
hints: [
{
type: 'error',
error: 'required',
message: 'This field is required.',
},
],
},
{
type: 'checkbox',
name: 'sales',
label: 'On sales',
},
];
Loading

0 comments on commit 2ee9138

Please sign in to comment.