bfg-common 1.3.445 → 1.3.446

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.
@@ -306,7 +306,14 @@ watch(
306
306
  (newValue) => {
307
307
  if (!newValue) return
308
308
 
309
- selectedMemory.value = $binary.mbToGb(newValue.size_mb)
309
+ const sizeInGb = $binary.mbToGb(newValue.size_mb)
310
+ if (sizeInGb < 1) {
311
+ selectedMemory.value = newValue.size_mb
312
+ memoryType.value = 'mb'
313
+ } else {
314
+ selectedMemory.value = sizeInGb
315
+ }
316
+
310
317
  reservation.value = '' + newValue.reservation_mb
311
318
  limit.value = '' + newValue.limit_mb
312
319
  memoryHotPlug.value = newValue.hotplug
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.3.445",
4
+ "version": "1.3.446",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",