mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
c7d53a31e0
New advanced module added as submodule of the profile section module. Advanced store introduced on the qml side and qml part updated accordingly.
46 lines
1.1 KiB
QML
46 lines
1.1 KiB
QML
import QtQuick 2.13
|
|
import QtQuick.Controls 2.13
|
|
import QtQuick.Layouts 1.13
|
|
|
|
import utils 1.0
|
|
import shared.popups 1.0
|
|
import shared.controls 1.0
|
|
|
|
RadioButtonSelector {
|
|
id: root
|
|
|
|
property var advancedStore
|
|
|
|
property string fleetName: ""
|
|
property string newFleet: ""
|
|
|
|
title: fleetName
|
|
checked: root.advancedStore.fleet === root.fleetName
|
|
|
|
onCheckedChanged: {
|
|
if (checked) {
|
|
if (root.advancedStore.fleet === root.fleetName)
|
|
return
|
|
|
|
root.newFleet = root.fleetName;
|
|
Global.openPopup(confirmDialogComponent)
|
|
}
|
|
}
|
|
|
|
Component {
|
|
id: confirmDialogComponent
|
|
ConfirmationDialog {
|
|
//% "Warning!"
|
|
header.title: qsTrId("close-app-title")
|
|
//% "Change fleet to %1"
|
|
confirmationText: qsTrId("change-fleet-to--1").arg(root.newFleet)
|
|
onConfirmButtonClicked: {
|
|
root.advancedStore.setFleet(root.newFleet)
|
|
}
|
|
onClosed: {
|
|
destroy();
|
|
}
|
|
}
|
|
}
|
|
}
|