mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Only show basename of CSV file
This commit is contained in:
parent
7ba129d9f2
commit
d150896257
1 changed files with 5 additions and 1 deletions
|
|
@ -15,12 +15,16 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|||
export let onImport: () => void;
|
||||
|
||||
const keyCombination = "Control+Enter";
|
||||
|
||||
function basename(path: String): String {
|
||||
return path.split(/[\\/]/).pop()!;
|
||||
}
|
||||
</script>
|
||||
|
||||
<div style:flex-grow="1" />
|
||||
<div class="sticky-footer">
|
||||
<Row --cols={5}
|
||||
><Col --col-size={4}>{path}</Col><Col --col-justify="end">
|
||||
><Col --col-size={4}>{basename(path)}</Col><Col --col-justify="end">
|
||||
<ButtonGroup size={2}>
|
||||
<LabelButton
|
||||
theme="primary"
|
||||
|
|
|
|||
Loading…
Reference in a new issue