lots of functionality

This commit is contained in:
2024-02-12 18:38:40 -06:00
parent 8642b1f73a
commit a59702182f
15 changed files with 1902 additions and 15 deletions

View File

@@ -394,7 +394,7 @@ func (d *AssetEditDialog) initData() {
}
// Comments category
d.assetCommentsArea.SetText("", true)
d.assetCommentsArea.SetText(d.asset.Comments, true)
}
}
@@ -773,7 +773,7 @@ func (d *AssetEditDialog) EditAssetOptions() types.CreateAssetRequest {
Manufacturer: d.assetManufacturerField.GetText(),
ModelName: d.assetModelField.GetText(),
Price: price,
Comments: d.assetCommentsArea.GetText(),
Comments: strings.TrimSpace(d.assetCommentsArea.GetText()),
ShelfLocationID: shelfID,
CategoryID: categoryID,
}