Revert "removed backspace functionality for team folder and sharedwithme homepage"

This reverts commit dfeef6fd
This commit is contained in:
Čarodej
2022-03-15 11:21:14 +01:00
parent 806af9da5c
commit 5fa205de27
20 changed files with 61 additions and 61 deletions

View File

@@ -60,7 +60,7 @@ export default {
events.$emit('emailsInputValues', this.emails)
},
removeLastEmail(event) {
// If is input empty and press backspace remove last email from array
// If is input empty and presse backspace remove last email from array
if (event.code === 'Backspace' && this.email === '') this.emails.pop()
},
handleEmail() {

View File

@@ -126,7 +126,7 @@ export default {
this.isLoadingTree = true
// Get folder tree and hide spinner
if (this.$isThisRoute(['SharedWithMe'])) {
if (this.$isThisRoute(this.$route, ['SharedWithMe'])) {
this.$store.dispatch('getTeamFolderTree').then(() => {
this.isLoadingTree = false
})

View File

@@ -119,7 +119,7 @@ export default {
canEditName() {
return (
!this.$isMobile() &&
!this.$isThisRoute(['Trash']) &&
!this.$isThisRoute(this.$route, ['Trash']) &&
!this.$checkPermission('visitor') &&
!(this.sharedDetail && this.sharedDetail.attributes.type === 'file')
)