Skip to content

Commit

Permalink
chore: minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
duchunter committed May 17, 2024
1 parent 2191e52 commit 9cfb594
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
9 changes: 5 additions & 4 deletions src/renderer/components/cipher/ListCipher.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,14 @@ export default {
},
shouldRenderNoCipher () {
const haveCipher = this.ciphers?.length
if (this.getRouteBaseName() === 'vault') {
return this.folders && !this.folders?.length && !haveCipher && !this.searchText
const routeName = this.getRouteBaseName()
if (routeName === 'vault') {
return !this.folders?.length && !this.collections?.length && !haveCipher && !this.searchText
}
if (this.getRouteBaseName() === 'vault-folders-folderId') {
if (routeName === 'vault-folders-folderId') {
return false
}
if (this.getRouteBaseName() === 'vault-tfolders-tfolderId') {
if (routeName === 'vault-tfolders-tfolderId') {
return false
}
return !haveCipher && !this.searchText
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/components/notice/Tutorial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<el-dialog
:visible="showTutorial"
custom-class="locker-tutorial-dialog max-w-[450px]"
custom-class="locker-tutorial-dialog !max-w-[450px]"
width="100%"
:close-on-press-escape="false"
:close-on-click-modal="false"
Expand All @@ -27,7 +27,7 @@

<el-dialog
:visible="showTutorialStep6"
custom-class="locker-tutorial-dialog max-w-[500px]"
custom-class="locker-tutorial-dialog !max-w-[500px]"
width="100%"
:close-on-press-escape="false"
:close-on-click-modal="false"
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/notice/WelcomeToBusiness.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<el-dialog
:visible.sync="visible"
custom-class="locker-dialog max-w-[600px]"
custom-class="locker-dialog !max-w-[600px]"
width="100%"
@close="onNormalClose"
>
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default {
this.$store.dispatch('LoadTeams')
this.getSyncData()
this.syncQuickShares()
this.$refs.emergencyAccessInvitations.getEmergencyAccessInvitations()
this.$refs.emergencyAccessInvitations?.getEmergencyAccessInvitations()
this.reconnectSocket()
this.getShareInvitations()
this.getMyShares()
Expand Down Expand Up @@ -318,7 +318,7 @@ export default {
break
}
case 'emergency_access':
this.$refs.emergencyAccessInvitations.getEmergencyAccessInvitations()
this.$refs.emergencyAccessInvitations?.getEmergencyAccessInvitations()
break
case 'quick_share':
switch (data.type) {
Expand Down
6 changes: 2 additions & 4 deletions src/renderer/pages/business/confirmation/_token.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ export default {
.$post('cystack_platform/pm/payments/trial/enterprise', {
token: params.token
})
.then(res => {
console.log(res)
.then(() => {
return {
token: { valid: true }
}
Expand All @@ -84,8 +83,7 @@ export default {
data () {
return {
token: {
valid: null,
key: ''
valid: null
},
seconds: 10,
intervalTimer: null
Expand Down

0 comments on commit 9cfb594

Please sign in to comment.