Skip to content

Commit

Permalink
Revert back to correct default name
Browse files Browse the repository at this point in the history
  • Loading branch information
proy30 committed Jan 10, 2025
1 parent eb0998d commit 0036415
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@

from impactx import distribution

from .. import DashboardDefaults, TrameFunctions, generalFunctions, setup_server, vuetify
from .. import (
DashboardDefaults,
TrameFunctions,
generalFunctions,
setup_server,
vuetify,
)
from .distributionFunctions import DistributionFunctions

server, state, ctrl = setup_server()
Expand Down Expand Up @@ -119,7 +125,7 @@ def distribution_parameters():
def on_distribution_name_change(distribution, **kwargs):
if distribution == "Thermal" or distribution == "Empty":
state.distribution_type = ""
state.distributionTypeDisabled = True
state.distribution_type_disabled = True
state.dirty("distribution_type")
else:
type_list_default = DashboardDefaults.LISTS["distribution_type_list"]
Expand All @@ -128,7 +134,7 @@ def on_distribution_name_change(distribution, **kwargs):
if state.distribution_type not in type_list_default:
state.distribution_type = type_default

state.distributionTypeDisabled = False
state.distribution_type_disabled = False


@state.change("distribution_type")
Expand Down

0 comments on commit 0036415

Please sign in to comment.