Skip to content

Commit 2a55763

Browse files
committed
content: linkFlashSide: link to first act instead
AKA the "jump act". This is analogous to what clicking on a flash act (on the flash index page) used to do.
1 parent 98ce55f commit 2a55763

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed
+7-22
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,22 @@
11
export default {
2-
contentDependencies: [
3-
'generateColorStyleAttribute',
4-
'linkStationaryIndex',
5-
],
2+
contentDependencies: ['linkFlashAct'],
63

7-
query: (flashSide) => ({
8-
jumpAct:
9-
flashSide.acts[0],
10-
}),
11-
12-
relations: (relation, _query, flashSide) => ({
4+
relations: (relation, flashSide) => ({
135
link:
14-
relation(
15-
'linkStationaryIndex',
16-
'localized.flashIndex',
17-
'flashIndex.title'),
18-
19-
colorStyle:
20-
relation('generateColorStyleAttribute', flashSide.color ?? null),
6+
relation('linkFlashAct', flashSide.acts[0]),
217
}),
228

23-
data: (query, flashSide) => ({
9+
data: (flashSide) => ({
2410
name:
2511
flashSide.name,
2612

27-
jumpActDirectory:
28-
query.jumpAct.directory,
13+
color:
14+
flashSide.color,
2915
}),
3016

3117
generate: (data, relations) =>
3218
relations.link.slots({
3319
content: data.name,
34-
hash: data.jumpActDirectory,
35-
attributes: [relations.colorStyle],
20+
color: data.color,
3621
}),
3722
};

0 commit comments

Comments
 (0)