aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2019-08-06 16:26:38 +0200
committerJohannes Zellner <johannes@cloudron.io>2019-08-06 16:26:38 +0200
commitd5940df06a4f498176dad293f66607fb69eb2a28 (patch)
treed3fd9b1e2a60eed7c1aac86e69ae831c7cb71717
parentc0c93a746ded65cfa7d9158d78449220bc2d6d7c (diff)
downloadSurfer-d5940df06a4f498176dad293f66607fb69eb2a28.tar.gz
Surfer-d5940df06a4f498176dad293f66607fb69eb2a28.tar.zst
Surfer-d5940df06a4f498176dad293f66607fb69eb2a28.zip
Prevent accidental deletion or download while rename is active
-rw-r--r--frontend/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/index.html b/frontend/index.html
index 974dece..2d97e1c 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -97,9 +97,9 @@
97 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column> 97 <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column>
98 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions"> 98 <el-table-column label="Actions" align="right" width="200px" class-name="list-actions">
99 <template slot-scope="scope"> 99 <template slot-scope="scope">
100 <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
101 <el-button size="small" icon="el-icon-edit" circle v-show="!scope.row.rename" @click.stop="onRename(scope.row, scope)"></el-button> 100 <el-button size="small" icon="el-icon-edit" circle v-show="!scope.row.rename" @click.stop="onRename(scope.row, scope)"></el-button>
102 <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button> 101 <el-button size="small" icon="el-icon-download" circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
102 <el-button size="small" icon="el-icon-delete" circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button>
103 </template> 103 </template>
104 </el-table-column> 104 </el-table-column>
105 </el-table> 105 </el-table>