Skip to content

Commit

Permalink
Fixed label bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonia Heinen committed Jul 7, 2024
1 parent ce12b32 commit 35c807d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBLabel.class/class/newFrom..st
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ newFrom: aJsonObject
| instance |
instance := self new.
instance
title: (aJsonObject at: 'title');
title: (aJsonObject at: 'name');
id: (aJsonObject at: 'id');
color: (Color fromString: (aJsonObject at: 'color')).
^ instance.
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBLabel.class/instance/asJson.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ asJson

^ JsonObject fromAssociations: {
'id' -> self id.
'title' -> self title.
'name' -> self title.
'color' -> self color printHtmlString.
}.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBLabel.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"class" : {
"newFrom:" : "FP 7/2/2024 11:31",
"newFrom:" : "AH 7/7/2024 16:44",
"newWithName:id:color:" : "FP 5/23/2024 10:08" },
"instance" : {
"=" : "jh 7/31/2022 13:05",
"asForm" : "tk 8/2/2022 23:37",
"asJson" : "FP 6/25/2024 11:23",
"asJson" : "AH 7/7/2024 17:01",
"asMorph" : "AH 6/22/2024 15:56",
"asString" : "lo 6/5/2022 14:49",
"color" : "lo 5/16/2022 22:01",
Expand Down

0 comments on commit 35c807d

Please sign in to comment.