MFTLandingPage now retrieves cards dynamically.

Commit
9a4928ed42b230746ed98174d4a0479f05664264
Author
Marius Peter <marius.peter@tutanota.com>
Author date
Committer
Marius Peter <marius.peter@tutanota.com>
Committer date
src/MyFitnessTracker/MFTLandingPage.class.st
index 04af9e98..444b2ce5 100644..100644
@@ -7,6 +7,18 @@
7 7 #category : #'MyFitnessTracker-Components'
8 8 }
9 9
10 Added: { #category : #accessing }
11 Added: MFTLandingPage >> cards [
12 Added:
13 Added: ^ cards
14 Added: ]
15 Added:
16 Added: { #category : #accessing }
17 Added: MFTLandingPage >> cards: aMFTCardCollection [
18 Added:
19 Added: cards := aMFTCardCollection
20 Added: ]
21 Added:
10 22 { #category : #hooks }
11 23 MFTLandingPage >> children [
12 24
@@ -43,5 +55,5 @@
43 55 html div
44 56 style:
45 57 'display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1em';
46 Removed: with: [ cards do: [ :card | html render: card ] ] ]
58 Added: with: [ self cards do: [ :card | html render: card ] ] ]
47 59 ]