Skip to content

Commit

Permalink
fixup! Fix the remaining bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlSchwan committed Nov 4, 2021
1 parent b294de2 commit 70e7412
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_status/src/components/ResetStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</template>

<script>
import { mapState, mapActions } from 'vuex'
import { mapState } from 'vuex'
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { getCurrentUser } from '@nextcloud/auth'

Expand Down
4 changes: 4 additions & 0 deletions apps/user_status/src/components/SetStatusModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</template>

<script>
import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { showError } from '@nextcloud/dialogs'
import EmojiPicker from '@nextcloud/vue/dist/Components/EmojiPicker'
import Modal from '@nextcloud/vue/dist/Components/Modal'
Expand Down Expand Up @@ -136,6 +137,9 @@ export default {
}
subscribe('user_status:status.updated', this.handleUserStatusUpdated)
},
beforeDestroy() {
unsubscribe('user_status:status.updated', this.handleUserStatusUpdated)
},
methods: {
/**
* Closes the Set Status modal
Expand Down

0 comments on commit 70e7412

Please sign in to comment.