simplify UI
This commit is contained in:
parent
93f766f40d
commit
ab51a92ecd
1 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue