Update app.py
Browse files
app.py
CHANGED
|
@@ -682,7 +682,7 @@ with st.sidebar:
|
|
| 682 |
# Show success message
|
| 683 |
st.success("Task added successfully!")
|
| 684 |
# Clear form after adding
|
| 685 |
-
st.
|
| 686 |
except Exception as e:
|
| 687 |
st.error(f"Error adding task: {str(e)}")
|
| 688 |
else:
|
|
@@ -699,7 +699,7 @@ for idx, task in st.session_state.tasks.iterrows():
|
|
| 699 |
# Create a hidden button that will be triggered by JavaScript
|
| 700 |
if st.button("", key=button_key, help="Hidden button for status update", disabled=task['Status'] == status):
|
| 701 |
update_task(idx, 'Status', status)
|
| 702 |
-
st.
|
| 703 |
|
| 704 |
# Add JavaScript for modal and status update functionality
|
| 705 |
st.markdown("""
|
|
|
|
| 682 |
# Show success message
|
| 683 |
st.success("Task added successfully!")
|
| 684 |
# Clear form after adding
|
| 685 |
+
st.rerun()
|
| 686 |
except Exception as e:
|
| 687 |
st.error(f"Error adding task: {str(e)}")
|
| 688 |
else:
|
|
|
|
| 699 |
# Create a hidden button that will be triggered by JavaScript
|
| 700 |
if st.button("", key=button_key, help="Hidden button for status update", disabled=task['Status'] == status):
|
| 701 |
update_task(idx, 'Status', status)
|
| 702 |
+
st.rerun()
|
| 703 |
|
| 704 |
# Add JavaScript for modal and status update functionality
|
| 705 |
st.markdown("""
|