diff options
-rw-r--r-- | app/index.html | 7 | ||||
-rw-r--r-- | app/js/app.js | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/app/index.html b/app/index.html index 773b5cf..78f5a94 100644 --- a/app/index.html +++ b/app/index.html | |||
@@ -25,7 +25,6 @@ | |||
25 | <!-- Collect the nav links, forms, and other content for toggling --> | 25 | <!-- Collect the nav links, forms, and other content for toggling --> |
26 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> | 26 | <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> |
27 | <ul class="nav navbar-nav navbar-right"> | 27 | <ul class="nav navbar-nav navbar-right"> |
28 | <li v-show="session.valid"><a href="#">Upload</a></li> | ||
29 | <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li> | 28 | <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li> |
30 | </ul> | 29 | </ul> |
31 | </div> | 30 | </div> |
@@ -63,6 +62,12 @@ | |||
63 | <div class="container" v-show="session.valid && !busy" v-cloak> | 62 | <div class="container" v-show="session.valid && !busy" v-cloak> |
64 | <div class="row"> | 63 | <div class="row"> |
65 | <div class="col-lg-12"> | 64 | <div class="col-lg-12"> |
65 | <center> | ||
66 | <button class="btn btn-primary">Upload</button> | ||
67 | </center> | ||
68 | <br/> | ||
69 | </div> | ||
70 | <div class="col-lg-12"> | ||
66 | <ol class="breadcrumb"> | 71 | <ol class="breadcrumb"> |
67 | <li><i class="fa fa-home"></i> </li> | 72 | <li><i class="fa fa-home"></i> </li> |
68 | <li v-for="part in pathParts"> | 73 | <li v-for="part in pathParts"> |
diff --git a/app/js/app.js b/app/js/app.js index 10a489c..b71a7ed 100644 --- a/app/js/app.js +++ b/app/js/app.js | |||
@@ -55,7 +55,6 @@ function loadDirectory(filePath) { | |||
55 | app.entries = result.body.entries; | 55 | app.entries = result.body.entries; |
56 | app.path = filePath; | 56 | app.path = filePath; |
57 | app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); | 57 | app.pathParts = filePath.split('/').filter(function (e) { return !!e; }); |
58 | console.log(app.pathParts) | ||
59 | }); | 58 | }); |
60 | } | 59 | } |
61 | 60 | ||
@@ -64,7 +63,7 @@ function open(entry) { | |||
64 | 63 | ||
65 | if (entry.isDirectory) return loadDirectory(path); | 64 | if (entry.isDirectory) return loadDirectory(path); |
66 | 65 | ||
67 | window.location.href = window.location.origin + path; | 66 | window.open(path); |
68 | } | 67 | } |
69 | 68 | ||
70 | function up() { | 69 | function up() { |