mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-11-26 23:34:55 +00:00
add validation
This commit is contained in:
@ -239,6 +239,7 @@ class CreateSpaceModelBloc
|
|||||||
for (var tag in newSubspace.tags!) {
|
for (var tag in newSubspace.tags!) {
|
||||||
tagUpdates.add(TagModelUpdate(
|
tagUpdates.add(TagModelUpdate(
|
||||||
action: Action.add,
|
action: Action.add,
|
||||||
|
uuid: tag.uuid,
|
||||||
tag: tag.tag,
|
tag: tag.tag,
|
||||||
productUuid: tag.product?.uuid));
|
productUuid: tag.product?.uuid));
|
||||||
}
|
}
|
||||||
@ -325,6 +326,7 @@ class CreateSpaceModelBloc
|
|||||||
tagUpdates.add(TagModelUpdate(
|
tagUpdates.add(TagModelUpdate(
|
||||||
action: Action.add,
|
action: Action.add,
|
||||||
tag: newTag.tag,
|
tag: newTag.tag,
|
||||||
|
uuid: newTag.uuid,
|
||||||
productUuid: newTag.product?.uuid));
|
productUuid: newTag.product?.uuid));
|
||||||
processedTags.add(newTag.tag);
|
processedTags.add(newTag.tag);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class SubspaceTemplateModel {
|
|||||||
final String internalId = json['internalId'] ?? const Uuid().v4();
|
final String internalId = json['internalId'] ?? const Uuid().v4();
|
||||||
|
|
||||||
return SubspaceTemplateModel(
|
return SubspaceTemplateModel(
|
||||||
uuid: json['uuid'] ?? '',
|
uuid: json['uuid'],
|
||||||
subspaceName: json['subspaceName'] ?? '',
|
subspaceName: json['subspaceName'] ?? '',
|
||||||
internalId: internalId,
|
internalId: internalId,
|
||||||
disabled: json['disabled'] ?? false,
|
disabled: json['disabled'] ?? false,
|
||||||
|
|||||||
@ -21,7 +21,7 @@ class TagModel extends BaseTag {
|
|||||||
final String internalId = json['internalId'] ?? const Uuid().v4();
|
final String internalId = json['internalId'] ?? const Uuid().v4();
|
||||||
|
|
||||||
return TagModel(
|
return TagModel(
|
||||||
uuid: json['uuid'] ?? '',
|
uuid: json['uuid'] ,
|
||||||
internalId: internalId,
|
internalId: internalId,
|
||||||
tag: json['tag'] ?? '',
|
tag: json['tag'] ?? '',
|
||||||
product: json['product'] != null
|
product: json['product'] != null
|
||||||
|
|||||||
Reference in New Issue
Block a user