Skip to content

Commit

Permalink
move disconnect to the bottom of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderGi committed Mar 1, 2024
1 parent c53e99f commit 6fdf326
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,17 @@ def integration_test_config_screen(
st.newline()
broadcast_input(bi)

col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Add Integration")
st.caption(f"Add another connection for {run_title}.")
with col2:
if st.button(
f'<img align="left" width="24" height="24" src="{INTEGRATION_IMG}"> &nbsp; Add Integration',
key="btn_connect",
):
raise RedirectException(add_integration)

col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Disconnect")
Expand All @@ -1281,17 +1292,6 @@ def integration_test_config_screen(
bi.save()
st.experimental_rerun()

col1, col2 = st.columns(2, style={"align-items": "center"})
with col1:
st.write("###### Add Integration")
st.caption(f"Add another connection for {run_title}.")
with col2:
if st.button(
f'<img align="left" width="24" height="24" src="{INTEGRATION_IMG}"> &nbsp; Add Integration',
key="btn_connect",
):
raise RedirectException(add_integration)


def show_landbot_widget():
landbot_url = st.session_state.get("landbot_url")
Expand Down

0 comments on commit 6fdf326

Please sign in to comment.