1
mirror of https://github.com/thepeacockproject/Peacock synced 2024-11-29 09:15:11 +01:00
Peacock/static/MissionEndNotReadyTemplate.json
Reece Dunham 6245e91624 Initial commit
Co-authored-by: Tino Roivanen <tino.roivanen98@gmail.com>
Co-authored-by: Govert de Gans <grappigegovert@hotmail.com>
Co-authored-by: Gray Olson <gray@grayolson.com>
Co-authored-by: Alexandre Sanchez <alex73630@gmail.com>
Co-authored-by: Anthony Fuller <24512050+anthonyfuller@users.noreply.github.com>
Co-authored-by: atampy25 <24306974+atampy25@users.noreply.github.com>
Co-authored-by: David <davidstulemeijer@gmail.com>
Co-authored-by: c0derMo <c0dermo@users.noreply.github.com>
Co-authored-by: Jeevat Singh <jeevatt.singh@gmail.com>
Signed-off-by: Reece Dunham <me@rdil.rocks>
2022-10-19 21:33:45 -04:00

83 lines
2.6 KiB
JSON

{
"controller": "group",
"id": "mission_rewards",
"selectable": false,
"pressable": false,
"children": [
{
"view": "menu3.MissionRewardPage",
"selectable": false,
"pressable": false,
"data": {
"loading": true
}
}
],
"post-load-action": {
"$if $gt ($.retryCount,45)": {
"$then": {
"trigger-action": {
"target": "mission_rewards",
"name": "handle-error"
}
},
"$else": {
"load-async": {
"onfailurebehaviour": "ignorefailures",
"showloadingindicator": true,
"from": {
"url": "missionendready",
"args": {
"contractSessionId": "$.contractSessionId",
"retryCount": "$.retryCount"
}
},
"target": "mission_rewards"
}
}
}
},
"on-error-action": {
"trigger-action": {
"target": "mission_rewards",
"name": "handle-error"
}
},
"actions": {
"handle-error": {
"show-modal": {
"config": {
"view": "menu3.modal.ModalDialogGeneric",
"buttons": [
"$loc UI_CONNECTION_STATUS_CONNECTING_PROMPT_RETRY",
"$loc UI_CONNECTION_STATUS_DISCONNECTED_GO_TO_HUB"
],
"data": {
"title": "$loc UI_DIALOG_ERROR",
"description": "$loc UI_MENU_PAGE_OPEN_FAILED_DESCRIPTION"
}
},
"onbutton": [
{
"load-async": {
"onfailurebehaviour": "ignorefailures",
"showloadingindicator": true,
"from": {
"url": "missionendready",
"args": {
"contractSessionId": "$.contractSessionId",
"retryCount": 0
}
},
"target": "mission_rewards"
}
},
{
"exit-to-main-menu": {}
}
]
}
}
}
}