mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
add bool function to space model if no changes made on object
This commit is contained in:
@ -171,4 +171,13 @@ extension SpaceExtensions on SpaceModel {
|
|||||||
|
|
||||||
return tagValues;
|
return tagValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isNoChangesSubmited(String name, icon, SpaceTemplateModel? spaceModel,
|
||||||
|
List<SubspaceModel>? subspaces, List<Tag>? tags) {
|
||||||
|
return (name == this.name &&
|
||||||
|
icon == this.icon &&
|
||||||
|
spaceModel == this.spaceModel &&
|
||||||
|
subspaces == this.subspaces &&
|
||||||
|
tags == this.tags);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user