aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/index.html
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2019-02-24 21:51:30 +0100
committerJohannes Zellner <johannes@cloudron.io>2019-02-24 21:51:30 +0100
commit8538b6b70524416a7916ea2418e6b3c46077c2a5 (patch)
tree9ec2f7615e99afb5ae8e9540b1f5c50ff090b16b /frontend/index.html
parent701c2be63f33a868f0369fe95d823ed0b11ec683 (diff)
downloadSurfer-8538b6b70524416a7916ea2418e6b3c46077c2a5.tar.gz
Surfer-8538b6b70524416a7916ea2418e6b3c46077c2a5.tar.zst
Surfer-8538b6b70524416a7916ea2418e6b3c46077c2a5.zip
Use inline renaming
Diffstat (limited to 'frontend/index.html')
-rw-r--r--frontend/index.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/frontend/index.html b/frontend/index.html
index 5bc64c1..0c18b52 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -85,13 +85,18 @@
85 <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/> 85 <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/>
86 </template> 86 </template>
87 </el-table-column> 87 </el-table-column>
88 <el-table-column prop="filePath" label="Name" sortable></el-table-column> 88 <el-table-column prop="filePath" label="Name" sortable>
89 <template slot-scope="scope">
90 <el-input v-on:keyup.native.enter="onRenameSubmit(scope.row)" v-on:keyup.native.esc="onRenameEnd(scope.row)" @blur="onRenameEnd(scope.row)" v-model="scope.row.filePathNew" :id="'filePathRenameInputId-' + scope.$index" v-show="scope.row.rename"></el-input>
91 <span v-show="!scope.row.rename">{{ scope.row.filePath }}</span>
92 </template>
93 </el-table-column>
89 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column> 94 <el-table-column prop="size" label="Size" width="150px" sortable :formatter="prettyFileSize"></el-table-column>
90 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column> 95 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column>
91 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions"> 96 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions">
92 <template slot-scope="scope"> 97 <template slot-scope="scope">
93 <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button> 98 <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
94 <el-button size="small" icon="el-icon-edit" circle @click.stop="onRename(scope.row)"></el-button> 99 <el-button size="small" icon="el-icon-edit" circle @click.stop="onRename(scope.row, scope)"></el-button>
95 <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button> 100 <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button>
96 </template> 101 </template>
97 </el-table-column> 102 </el-table-column>