@afeefa/vue-app 0.0.346 → 0.0.347

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.
@@ -1 +1 @@
1
- 0.0.346
1
+ 0.0.347
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afeefa/vue-app",
3
- "version": "0.0.346",
3
+ "version": "0.0.347",
4
4
  "description": "",
5
5
  "author": "Afeefa Kollektiv <kollektiv@afeefa.de>",
6
6
  "license": "MIT",
@@ -89,6 +89,11 @@ export default class AContextMenu extends Mixins(UsesPositionServiceMixin, Cance
89
89
  }
90
90
 
91
91
  open () {
92
+ if (this.isOpen) {
93
+ this.close()
94
+ return
95
+ }
96
+
92
97
  window.addEventListener('mousedown', this.onClickOutside)
93
98
  window.addEventListener('wheel', this.close)
94
99
  window.addEventListener('touchmove', this.close)
@@ -1,4 +1,4 @@
1
- export function formatEuroPrice (price, showZero = false) {
1
+ export function formatEuroPrice (price, showZero = true) {
2
2
  if (!price && !showZero) {
3
3
  return ''
4
4
  }
@@ -8,6 +8,5 @@ export function formatEuroPrice (price, showZero = false) {
8
8
  currency: 'EUR'
9
9
  })
10
10
 
11
- return formatter.format(price)
11
+ return formatter.format(price ?? 0)
12
12
  }
13
-