]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Hide rename button when rename is in action
authorJohannes Zellner <johannes@cloudron.io>
Sun, 24 Feb 2019 21:42:48 +0000 (22:42 +0100)
committerJohannes Zellner <johannes@cloudron.io>
Sun, 24 Feb 2019 21:42:48 +0000 (22:42 +0100)
frontend/index.html

index 0c18b5242b002b1c8e2886ea17c232805abb38db..8cea7b9bdd32563e7f2c8bb5b208124b08b31b9d 100644 (file)
@@ -96,7 +96,7 @@
           <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 @click.stop="onRename(scope.row, scope)"></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>
             </template>
           </el-table-column>