Skip to content

Commit

Permalink
Display full path (#158)
Browse files Browse the repository at this point in the history
* display full file path

* bump version
  • Loading branch information
oeway committed May 20, 2019
1 parent 399138c commit cfe34fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ImJoy.io",
"version": "0.9.61",
"version": "0.9.62",
"private": true,
"description": "ImJoy -- deploying deep learning made easy.",
"author": "Wei OUYANG <wei.ouyang@cri-paris.org>",
Expand Down
9 changes: 6 additions & 3 deletions web/src/components/FileDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export default {
loading_progress: 0,
};
},
created() {
this.event_bus = this.$root.$data.store && this.$root.$data.store.event_bus;
if (this.event_bus) {
Expand Down Expand Up @@ -234,6 +235,7 @@ export default {
},
go() {
const path = prompt("Go to the folder", this.root);
if (!path || path == this.root) return;
this.listFiles(this.selected_engine, path, "dir", false)
.then(tree => {
this.root = tree.path;
Expand All @@ -256,9 +258,10 @@ export default {
},
loadFile(f) {
if (f.target.type != "file") {
// if(f.path === this.root){
// f.path = f.path+'/../'
// }
if (f.path === this.root) {
this.go();
return;
}
this.listFiles(
this.selected_engine,
f.path,
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/FileItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Array.isArray(selected) &&
selected.indexOf(root) >= 0),
}"
>{{ model.name }}</span
>{{ isFolder ? root : model.name }}</span
>
</span>
<span
Expand Down

0 comments on commit cfe34fd

Please sign in to comment.