simplify UI

This commit is contained in:
LUIS NOVO 2024-10-22 16:41:30 -03:00
parent 93f766f40d
commit ab51a92ecd

View file

@ -133,13 +133,16 @@ def source_card(session_id, source):
st.write(insight.insight_type) st.write(insight.insight_type)
st.write(insight.content) st.write(insight.content)
with st.popover("Actions"): if st.button("Edit Source", icon="📝", key=source.id):
if st.button("Edit Source", icon="📝", key=source.id): source_panel(source.id)
result = source_panel(source.id)
st.write(result) # with st.popover("Actions"):
if st.button("Delete", icon="🗑️", key=f"delete_options_{source.id}"): # if st.button("Edit Source", icon="📝", key=source.id):
source.delete() # result = source_panel(source.id)
st.rerun() # st.write(result)
# if st.button("Delete", icon="🗑️", key=f"delete_options_{source.id}"):
# source.delete()
# st.rerun()
st.session_state[session_id]["context_config"][source.id] = context_state st.session_state[session_id]["context_config"][source.id] = context_state