]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Prevent accidental deletion or download while rename is active
authorJohannes Zellner <johannes@cloudron.io>
Tue, 6 Aug 2019 14:26:38 +0000 (16:26 +0200)
committerJohannes Zellner <johannes@cloudron.io>
Tue, 6 Aug 2019 14:26:38 +0000 (16:26 +0200)
frontend/index.html

index 974decebdfe5ebdeed40b8774754c4a0367849b0..2d97e1cb83fb16dc1afb4049894f5e231585ad64 100644 (file)
@@ -97,9 +97,9 @@
           <el-table-column prop="mtime" label="Modified" width="150px" sortable :formatter="prettyDate"></el-table-column>
           <el-table-column label="Actions" align="right" width="200px" class-name="list-actions">
             <template slot-scope="scope">
-              <el-button size="small" icon="el-icon-download" circle v-show="scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
               <el-button size="small" icon="el-icon-edit" circle v-show="!scope.row.rename" @click.stop="onRename(scope.row, scope)"></el-button>
-              <el-button size="small" icon="el-icon-delete" circle @click.stop="onDelete(scope.row)"></el-button>
+              <el-button size="small" icon="el-icon-download" circle v-show="!scope.row.rename && scope.row.isFile" @click.stop="onDownload(scope.row)"></el-button>
+              <el-button size="small" icon="el-icon-delete" circle v-show="!scope.row.rename" @click.stop="onDelete(scope.row)"></el-button>
             </template>
           </el-table-column>
         </el-table>