Skip to content

Commit 21bd7fc

Browse files
authored
Merge pull request #54 from scalableminds/interactive-client-fix-delete-modal
2 parents 8b57bfe + c373b80 commit 21bd7fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/interactive/record_explorer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,14 @@ def __init__(
335335
self.key = key
336336
self.version = version
337337

338+
self.sanitized_key = RecordExplorer.sanitize_filename(
339+
f"{self.collection}_{self.key}_{self.version}"
340+
)
341+
338342
def compose(self) -> ComposeResult:
339343
yield Vertical(
340344
Label(
341-
f"Are you sure you want to delete version {self.version} of {self.collection}:{self.key}?",
345+
f"Are you sure you want to delete {self.sanitized_key}",
342346
id="note",
343347
),
344348
Button("Yes", variant="error", id="yes"),

0 commit comments

Comments
 (0)