diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-05 01:17:59 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-05 02:17:43 +0200 |
commit | 693472d06c52340e85ee4bdf066fc0d746398f43 (patch) | |
tree | 33f1fa5d74b1806f36e30cf162bdd540aaf58d2b | |
parent | d34561d155e99a263bf8874318a91e0161518e4a (diff) | |
download | Surfer-693472d06c52340e85ee4bdf066fc0d746398f43.tar.gz Surfer-693472d06c52340e85ee4bdf066fc0d746398f43.tar.zst Surfer-693472d06c52340e85ee4bdf066fc0d746398f43.zip |
Add button to real path
-rw-r--r-- | frontend/index.html | 3 | ||||
-rw-r--r-- | frontend/js/app.js | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/frontend/index.html b/frontend/index.html index 20f2c8d..1d7a3c5 100644 --- a/frontend/index.html +++ b/frontend/index.html | |||
@@ -126,6 +126,9 @@ | |||
126 | <template slot-scope="scope"> | 126 | <template slot-scope="scope"> |
127 | <el-button size="small" icon="el-icon-download" type="text" plain circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button> | 127 | <el-button size="small" icon="el-icon-download" type="text" plain circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button> |
128 | <el-button size="small" icon="el-icon-delete" type="text" plain circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button> | 128 | <el-button size="small" icon="el-icon-delete" type="text" plain circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button> |
129 | <a :href="sanitize(path + '/' + scope.row.filePath)" target="_blank"> | ||
130 | <el-button size="small" icon="el-icon-link" style="margin: 10px;">Link</el-button> | ||
131 | </a> | ||
129 | </template> | 132 | </template> |
130 | </el-table-column> | 133 | </el-table-column> |
131 | </el-table> | 134 | </el-table> |
diff --git a/frontend/js/app.js b/frontend/js/app.js index f532bc1..61f1b46 100644 --- a/frontend/js/app.js +++ b/frontend/js/app.js | |||
@@ -500,7 +500,8 @@ var app = new Vue({ | |||
500 | }, | 500 | }, |
501 | open: open, | 501 | open: open, |
502 | drop: drop, | 502 | drop: drop, |
503 | dragOver: dragOver | 503 | dragOver: dragOver, |
504 | sanitize: sanitize | ||
504 | } | 505 | } |
505 | }); | 506 | }); |
506 | 507 | ||