correct context options for sources and notes
This commit is contained in:
parent
70358a1be7
commit
d20794e271
3 changed files with 11 additions and 5 deletions
|
|
@ -1,4 +1,10 @@
|
|||
context_icons = [
|
||||
source_context_icons = [
|
||||
"⛔ not in context",
|
||||
"🟡 summary",
|
||||
"🟢 full content",
|
||||
]
|
||||
|
||||
note_context_icons = [
|
||||
"⛔ not in context",
|
||||
"🟡 summary",
|
||||
"🟢 full content",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ from open_notebook.graphs.multipattern import graph as pattern_graph
|
|||
from open_notebook.utils import surreal_clean
|
||||
from pages.components import note_panel
|
||||
|
||||
from .consts import context_icons
|
||||
from .consts import note_context_icons
|
||||
|
||||
|
||||
@st.dialog("Write a Note", width="large")
|
||||
|
|
@ -60,7 +60,7 @@ def note_card(note, notebook_id):
|
|||
context_state = st.selectbox(
|
||||
"Context",
|
||||
label_visibility="collapsed",
|
||||
options=context_icons,
|
||||
options=note_context_icons,
|
||||
index=1,
|
||||
key=f"note_{note.id}",
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ from open_notebook.exceptions import UnsupportedTypeException
|
|||
from open_notebook.graphs.source import source_graph
|
||||
from pages.components import source_panel
|
||||
|
||||
from .consts import context_icons
|
||||
from .consts import source_context_icons
|
||||
|
||||
|
||||
@st.dialog("Source", width="large")
|
||||
|
|
@ -113,7 +113,7 @@ def source_card(source, notebook_id):
|
|||
context_state = st.selectbox(
|
||||
"Context",
|
||||
label_visibility="collapsed",
|
||||
options=context_icons,
|
||||
options=source_context_icons,
|
||||
index=1,
|
||||
key=f"source_{source.id}",
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue