mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-06 06:06:05 +08:00
Extract variables to utils/unit
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script>
|
||||
import UnitInput from '@shell/components/form/UnitInput';
|
||||
|
||||
import { MEBIBYTE } from '../../utils/unit';
|
||||
export default {
|
||||
name: 'HarvesterReserved',
|
||||
|
||||
@@ -20,7 +20,7 @@ export default {
|
||||
},
|
||||
|
||||
data() {
|
||||
return { memory: this.reservedMemory };
|
||||
return { MEBIBYTE, memory: this.reservedMemory };
|
||||
},
|
||||
|
||||
watch: {
|
||||
@@ -47,7 +47,7 @@ export default {
|
||||
:input-exponent="2"
|
||||
:increment="1024"
|
||||
:output-modifier="true"
|
||||
suffix="Mi"
|
||||
:suffix="MEBIBYTE"
|
||||
@update:value="change"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user