mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-10-31 22:17:29 +00:00
Merge branch 'master' into backblaze-refactor
This commit is contained in:
commit
67556f6ace
|
@ -312,6 +312,7 @@
|
|||
"extending_volume_description": "Resizing volume will allow you to store more data on your server without extending the server itself. Volume can only be extended: shrinking is not possible.",
|
||||
"extending_volume_price_info": "Price includes VAT and is estimated from pricing data provided by your server provider. Server will be rebooted after resizing.",
|
||||
"extending_volume_error": "Couldn't initialize volume extending.",
|
||||
"extending_volume_modal_description": "Upgrade to {} for {} plan per month.",
|
||||
"size": "Size",
|
||||
"price": "Price",
|
||||
"data_migration_title": "Data migration",
|
||||
|
|
|
@ -69,13 +69,6 @@ class CloudflareDnsProvider extends DnsProvider {
|
|||
)
|
||||
.toList();
|
||||
|
||||
/// TODO: Remove when domain selection for more than one domain on account is implemented, move cachedZoneId writing to domain saving method
|
||||
_adapter = ApiAdapter(
|
||||
isWithToken: true,
|
||||
cachedDomain: result.data[0].name,
|
||||
cachedZoneId: result.data[0].id,
|
||||
);
|
||||
|
||||
return GenericResult(
|
||||
success: true,
|
||||
data: domains,
|
||||
|
|
|
@ -8,6 +8,7 @@ import 'package:selfprivacy/logic/models/disk_size.dart';
|
|||
import 'package:selfprivacy/logic/models/price.dart';
|
||||
import 'package:selfprivacy/ui/components/buttons/brand_button.dart';
|
||||
import 'package:selfprivacy/ui/components/info_box/info_box.dart';
|
||||
import 'package:selfprivacy/ui/helpers/modals.dart';
|
||||
import 'package:selfprivacy/ui/layouts/brand_hero_screen.dart';
|
||||
import 'package:selfprivacy/logic/models/disk_status.dart';
|
||||
|
||||
|
@ -46,7 +47,6 @@ class _ExtendingVolumePageState extends State<ExtendingVolumePage> {
|
|||
late double _currentSliderGbValue;
|
||||
double _pricePerGb = 1.0;
|
||||
|
||||
// TODO: Wtfff hardcode?!?!?
|
||||
final DiskSize maxSize = const DiskSize(byte: 500000000000);
|
||||
late DiskSize minSize;
|
||||
|
||||
|
@ -155,6 +155,14 @@ class _ExtendingVolumePageState extends State<ExtendingVolumePage> {
|
|||
onPressed: _isError || isAlreadyResizing
|
||||
? null
|
||||
: () {
|
||||
showPopUpAlert(
|
||||
alertTitle: 'storage.extending_volume_title'.tr(),
|
||||
description:
|
||||
'storage.extending_volume_modal_description'.tr(
|
||||
args: [_sizeController.text, _priceController.text],
|
||||
),
|
||||
actionButtonTitle: 'basis.continue'.tr(),
|
||||
actionButtonOnPressed: () {
|
||||
context.read<ApiProviderVolumeCubit>().resizeVolume(
|
||||
widget.diskVolumeToResize,
|
||||
DiskSize.fromGibibyte(
|
||||
|
@ -164,6 +172,8 @@ class _ExtendingVolumePageState extends State<ExtendingVolumePage> {
|
|||
);
|
||||
context.router.popUntilRoot();
|
||||
},
|
||||
);
|
||||
},
|
||||
child: Text('storage.extend_volume_button.title'.tr()),
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
|
|
Loading…
Reference in a new issue