New products, productDetail dialog offers a specs category

This commit is contained in:
2024-09-20 23:20:03 +02:00
parent 89e91c3213
commit 3863661b3c
61 changed files with 208 additions and 84 deletions

View File

@@ -29,7 +29,6 @@ export class Product extends Model {
return this.getDataValue('images').split(';')
},
set(value: Array<string>) {
console.log(value)
this.setDataValue('images', value.join(';'))
}
})
@@ -37,6 +36,17 @@ export class Product extends Model {
@Column
description: string
@Column({
type: DataType.STRING,
get(): Array<string> {
return this.getDataValue('specs').split(';')
},
set(value: Array<string>) {
this.setDataValue('specs', value.join(';'))
}
})
specs: Array<string>
// Relations
@BelongsTo(() => Category)