mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
Extract variables to utils/unit
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import { Banner } from '@components/Banner';
|
||||
import AsyncButton from '@shell/components/AsyncButton';
|
||||
import UnitInput from '@shell/components/form/UnitInput';
|
||||
import { exceptionToErrorsArray } from '@shell/utils/error';
|
||||
import { GIBIBYTE } from '../utils/unit';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterVMQuotaDialog',
|
||||
@@ -29,6 +30,7 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
GIBIBYTE,
|
||||
totalSnapshotSize: '',
|
||||
errors: []
|
||||
};
|
||||
@@ -44,7 +46,6 @@ export default {
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
close() {
|
||||
this.totalSnapshotSize = '';
|
||||
this.$emit('close');
|
||||
@@ -92,7 +93,7 @@ export default {
|
||||
:input-exponent="3"
|
||||
:increment="1024"
|
||||
:output-modifier="true"
|
||||
suffix="Gi"
|
||||
:suffix="GIBIBYTE"
|
||||
class="mb-20"
|
||||
/>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user