small fixes
This commit is contained in:
@@ -101,10 +101,8 @@ def render_status(job_data: dict, app_config: dict):
|
||||
st.markdown(f"{details}")
|
||||
st.markdown(f"Started: {start_time if start_time is not None else 'N/A'}")
|
||||
st.markdown(f"Time remaining: {time_remaining if time_remaining is not None else 'N/A'}")
|
||||
|
||||
|
||||
else:
|
||||
st.markdown("Pending")
|
||||
st.markdown("Error")
|
||||
|
||||
|
||||
def render_task_list(container, app_config: dict):
|
||||
@@ -121,6 +119,7 @@ def render_task_list(container, app_config: dict):
|
||||
st.subheader('Task List')
|
||||
st.write("Here you can see the status of your tasks, view the results, and delete tasks.")
|
||||
|
||||
|
||||
column_config = [
|
||||
{
|
||||
"name": "Name",
|
||||
@@ -144,7 +143,9 @@ def render_task_list(container, app_config: dict):
|
||||
key=f"delete_{x['name']}")
|
||||
}
|
||||
]
|
||||
list_container = st.container(border=True)
|
||||
|
||||
with list_container.container():
|
||||
if len(existing_jobs) == 0:
|
||||
st.write("No tasks available.")
|
||||
else:
|
||||
|
||||
@@ -71,7 +71,7 @@ if authentication_status is True:
|
||||
render_home(content_wrapper, config, authenticator if authentication_enabled else None)
|
||||
else:
|
||||
# make sure to remove cookie
|
||||
print("rendering login...")
|
||||
st.markdown("Please login. If no login form is shown, please refresh the page.")
|
||||
render_login()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user