provide all tags on edit space

This commit is contained in:
hannathkadher
2025-02-03 22:23:53 +04:00
parent 72241cba6c
commit 6f51c2d2b6
5 changed files with 78 additions and 52 deletions

View File

@ -461,6 +461,7 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
builder: (context) => AssignTagDialog(
products: widget.products,
subspaces: subspaces,
allTags: widget.allTags,
addedProducts: TagHelper
.createInitialSelectedProductsForTags(
tags ?? [], subspaces),
@ -660,6 +661,8 @@ class CreateSpaceDialogState extends State<CreateSpaceDialog> {
void _showTagCreateDialog(BuildContext context, String name, bool isEdit,
List<ProductModel>? products) {
print("ada ${widget.allTags}");
isEdit
? showDialog(
context: context,