mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
b3f8af8e06
Qml code referring to the old code base commented out, but not deleted, due to easier refactoring the rest of the app.
45 lines
1.2 KiB
QML
45 lines
1.2 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 string fleetName: ""
|
|
property string newFleet: ""
|
|
|
|
title: fleetName
|
|
// Not Refactored Yet
|
|
// checked: profileModel.fleets.fleet === root.fleetName
|
|
|
|
onCheckedChanged: {
|
|
// Not Refactored Yet
|
|
// if (checked) {
|
|
// if (profileModel.fleets.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)
|
|
// Not Refactored Yet
|
|
// onConfirmButtonClicked: profileModel.fleets.setFleet(root.newFleet)
|
|
onClosed: {
|
|
// Not Refactored Yet
|
|
// profileModel.fleets.triggerFleetChange()
|
|
destroy();
|
|
}
|
|
}
|
|
}
|
|
}
|