Commit 08671cdd authored by Cage, Gregory's avatar Cage, Gregory
Browse files

Rename exit button file and clean up edge case

parent cce75933
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
### nova-trame, 0.22.1

* Themed app now has an Exit Button by default which closes the application and can stop any running jobs (thanks to Gregory Cage).

### nova-trame, 0.22.0

* DataSelector queries subdirectories on demand, which should improve performance for large directory trees (thanks to John Duggan).
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ Changelog = "https://code.ornl.gov/ndip/public-packages/nova-trame/blob/main/CHA

[tool.poetry]
name = "nova-trame"
version = "0.22.0"
version = "0.22.1"
description = "A Python Package for injecting curated themes and custom components into Trame applications"
authors = ["Duggan, John <dugganjw@ornl.gov>"]
readme = "README.md"
+11 −10
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ from trame_server.state import State

from nova.common.signals import Signal
from nova.mvvm.pydantic_utils import validate_pydantic_parameter
from nova.trame.view.theme.lifecycle_components import ExitButton
from nova.trame.view.theme.exit_button import ExitButton
from nova.trame.view.utilities.local_storage import LocalStorageManager

THEME_PATH = Path(__file__).parent
@@ -146,6 +146,7 @@ class ThemedApp:
    async def get_jobs_callback(self) -> None:
        get_tools_signal = blinker.signal(Signal.GET_ALL_TOOLS)
        response = get_tools_signal.send()
        if response and len(response[0]) > 1:  # Make sure that the callback had a return value
            try:
                self.server.state.nova_running_jobs = [tool.id for tool in response[0][1]]
                if len(self.server.state.nova_running_jobs) > 0: