File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11<template >
22 <div class =" fm-grid" >
33 <div class =" d-flex align-content-start flex-wrap" >
4- <div class =" fm-grid-item text-center" v-on:click =" levelUp" >
4+ <div class =" fm-grid-item text-center" v-on:click =" levelUp" v-if = " !isRootPath " >
55 <div class =" fm-item-icon" >
66 <i class =" fas fa-level-up-alt fa-5x pb-2" ></i >
77 </div >
Original file line number Diff line number Diff line change 4242 </tr >
4343 </thead >
4444 <tbody >
45- <tr >
45+ <tr v-if = " !isRootPath " >
4646 <td colspan =" 4" class =" fm-content-item" v-on:click =" levelUp" >
4747 <i class =" fas fa-level-up-alt" ></i >
4848 </td >
Original file line number Diff line number Diff line change @@ -49,6 +49,13 @@ export default {
4949 acl ( ) {
5050 return this . $store . state . fm . settings . acl ;
5151 } ,
52+
53+ /**
54+ * Check if current path is at root level
55+ */
56+ isRootPath ( ) {
57+ return this . $store . state . fm [ this . manager ] . selectedDirectory === null ;
58+ }
5259 } ,
5360 methods : {
5461 /**
You can’t perform that action at this time.
0 commit comments