]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - frontend/index.html
Prevent accidental deletion or download while rename is active
[perso/Immae/Projets/Nodejs/Surfer.git] / frontend / index.html
index b3a6bbaaf70cdc1eea6b0d1c603b2f887484157d..2d97e1cb83fb16dc1afb4049894f5e231585ad64 100644 (file)
@@ -6,12 +6,13 @@
 
     <link rel="icon" type="image/png" href="/_admin/img/logo.png">
 
-    <link rel="stylesheet" href="/_admin/css/theme-chalk.css">
+    <link rel="stylesheet" href="/_admin/css/theme-chalk_2.11.1.css">
     <link rel="stylesheet" href="/_admin/css/style.css">
 
     <script src="/_admin/js/jquery-1.12.1.min.js"></script>
-    <script src="/_admin/js/vue.js"></script>
-    <script src="/_admin/js/element-ui.js"></script>
+    <script src="/_admin/js/vue.min.js"></script>
+    <script src="/_admin/js/element-ui_2.11.1.min.js"></script>
+    <script src="/_admin/js/element-ui_en_2.11.1.min.js"></script>
     <script src="/_admin/js/filesize.min.js"></script>
     <script src="/_admin/js/superagent.js"></script>
 
@@ -83,7 +84,7 @@
         <el-table :data="entries" style="max-width: 1280px;width: 100%" height="100%" empty-text="Folder is emtpy" :default-sort="{ prop: 'filePath', order: 'descending' }" @row-click="open">
           <el-table-column prop="previewUrl" label="Type" width="100px" sortable>
             <template slot-scope="scope">
-              <img v-bind:src="scope.row.previewUrl" height="48px" width="48px"/>
+              <img v-bind:src="scope.row.previewUrl" height="48px" width="48px" style="object-fit: cover;"/>
             </template>
           </el-table-column>
           <el-table-column prop="filePath" label="Name" sortable>
@@ -96,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>