Skip to content

Commit

Permalink
Use share status enum
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed May 20, 2022
1 parent 6b911b4 commit 2243183
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web-runtime/src/components/Topbar/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<script>
import { mapGetters, mapActions } from 'vuex'
import { bus } from 'web-pkg/src/instance'
import { ShareStatus } from 'files/src/helpers/share'
export default {
computed: {
Expand Down Expand Up @@ -90,7 +91,7 @@ export default {
const { state, path, file_target: fileTarget } = item
// accepted federated share
if (state === 0 && fileTarget) {
if (state === ShareStatus.accepted && fileTarget) {
bus.publish('app.files.list.load')
return
}
Expand Down

0 comments on commit 2243183

Please sign in to comment.