@bildvitta/quasar-ui-asteroid 3.14.0-beta.4 → 3.14.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.14.0-beta.4",
4
+ "version": "3.14.0-beta.5",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -68,12 +68,6 @@ const { isNotificationsEnabled, setUnreadNotificationsCount } = useNotifications
68
68
  const menuDrawer = ref(false)
69
69
  const notificationsDrawer = ref(false)
70
70
 
71
- /**
72
- * Como está sendo utilizado em um watcher com a propriedade 'immediate: true',
73
- * é necessário criar a variável antes de atribuí-la ao watcher, para assim conseguir pará-lo.
74
- */
75
- let unreadNotificationsCountWatcher = () => {}
76
-
77
71
  // computed
78
72
  const defaultAppMenuProps = computed(() => {
79
73
  return {
@@ -84,19 +78,7 @@ const defaultAppMenuProps = computed(() => {
84
78
 
85
79
  const showMenuDrawer = computed(() => !screen.untilLarge || menuDrawer.value)
86
80
 
87
- /**
88
- * A propriedade "initialUnreadNotificationsCount" é escutada apenas uma vez,
89
- * quando ela é iniciada, seta o "unreadNotificationsCount" do composable,
90
- * após isto quem controla é o QasLayout.
91
- */
92
- unreadNotificationsCountWatcher = watch(() => props.initialUnreadNotificationsCount, value => {
93
- if (value) {
94
- setUnreadNotificationsCount(value)
95
-
96
- // finaliza o watcher
97
- unreadNotificationsCountWatcher()
98
- }
99
- }, { immediate: true })
81
+ watch(() => props.initialUnreadNotificationsCount, setUnreadNotificationsCount, { immediate: true })
100
82
 
101
83
  // functions
102
84
  function signOut () {