Lib: Load modal meta data required for "create" driver/race/team/substitution cards
This commit is contained in:
@ -47,11 +47,16 @@
|
||||
if ($modalStore[0].meta) {
|
||||
const meta = $modalStore[0].meta;
|
||||
|
||||
// Stuff thats required for the "update" card
|
||||
driver = meta.driver;
|
||||
team_select_value = meta.team_select_value;
|
||||
team_select_options = meta.team_select_options;
|
||||
active_value = meta.active_value;
|
||||
disable_inputs = meta.disable_inputs;
|
||||
|
||||
// Stuff thats additionally required for the "create" card
|
||||
require_inputs = meta.require_inputs;
|
||||
headshot_template = meta.headshot_template;
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user