@@ -46,11 +46,7 @@ tbody {
46
46
.div-responsive {
47
47
min-height : 400px ;
48
48
}
49
- .back-route {
50
- padding-right : 100% ;
51
- padding-top : 20px ;
52
- padding-bottom : 15px ;
53
- }
49
+
54
50
.back-route td {
55
51
border-top : none ;
56
52
}
@@ -198,15 +194,15 @@ tbody {
198
194
</tr >
199
195
200
196
<tr v-if =" path.length > 0" >
201
- <router-link to = " ../ " class =" back-route" >
197
+ <div class =" back-route" @dblclick = " exit " >
202
198
<td class =" px-3" >
203
199
<a
204
200
href =" javascript:null"
205
- v-on:click =" back"
201
+ @dblclick =" back"
206
202
>..</a
207
203
>
208
204
</td >
209
- </router-link >
205
+ </div >
210
206
</tr >
211
207
212
208
<tr
@@ -316,8 +312,8 @@ import FileShareModal from "./FileShareModal";
316
312
317
313
// Computed property creators
318
314
319
- const fromFilesStore = ( prop ) =>
320
- function () {
315
+ const fromFilesStore = prop =>
316
+ function () {
321
317
return this .$store .state .files [prop];
322
318
};
323
319
@@ -339,13 +335,12 @@ export default {
339
335
const noForwardSlashes = this .createFolderInput .indexOf (" /" ) === - 1 ;
340
336
341
337
const nameIsNotOnlyPeriods =
342
- [... this .createFolderInput .trim ()].filter (
343
- (char ) => char === " ."
344
- ).length !== this .createFolderInput .trim ().length ;
338
+ [... this .createFolderInput .trim ()].filter (char => char === " ." )
339
+ .length !== this .createFolderInput .trim ().length ;
345
340
346
341
const notDuplicate =
347
342
this .files .filter (
348
- ( file ) => file .Key === this .createFolderInput .trim ()
343
+ file => file .Key === this .createFolderInput .trim ()
349
344
).length === 0 ;
350
345
351
346
return (
@@ -365,11 +360,11 @@ export default {
365
360
},
366
361
367
362
singleFiles () {
368
- return this .files .filter (( f ) => f .type === " file" );
363
+ return this .files .filter (f => f .type === " file" );
369
364
},
370
365
371
366
folders () {
372
- return this .files .filter (( f ) => f .type === " folder" );
367
+ return this .files .filter (f => f .type === " folder" );
373
368
},
374
369
375
370
routePath () {
@@ -388,6 +383,9 @@ export default {
388
383
}
389
384
},
390
385
methods: {
386
+ exit () {
387
+ this .$router .push (" ../" );
388
+ },
391
389
closeModalDropdown () {
392
390
if (this .$store .state .files .modalPath ) {
393
391
this .$store .commit (" files/closeModal" );
0 commit comments