Fix problem with definition sequence of PageSettingsKillSwitchExceptions.pml elements

This commit is contained in:
aiamnezia 2025-03-18 22:41:56 +04:00
parent a120f3d5bd
commit d1f5d8815b

View file

@ -66,27 +66,12 @@ PageType {
ScrollBar.vertical: ScrollBarType { } ScrollBar.vertical: ScrollBarType { }
footer: AddSitePanel { footer: Item {
id: addSitePanel
width: listView.width width: listView.width
z: 10 height: addSitePanel.height
enabled: root.pageEnabled
placeholderText: qsTr("IPv4 address")
onAddClicked: function(text) {
PageController.showBusyIndicator(true)
AllowedDnsController.addDns(text)
PageController.showBusyIndicator(false)
} }
onMoreClicked: { footerPositioning: ListView.InlineFooter
moreActionsDrawer.openTriggered()
}
}
footerPositioning: ListView.OverlayFooter
model: SortFilterProxyModel { model: SortFilterProxyModel {
id: dnsFilterModel id: dnsFilterModel
@ -142,6 +127,27 @@ PageType {
} }
} }
AddSitePanel {
id: addSitePanel
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right
enabled: root.pageEnabled
placeholderText: qsTr("IPv4 address")
onAddClicked: function(text) {
PageController.showBusyIndicator(true)
AllowedDnsController.addDns(text)
PageController.showBusyIndicator(false)
}
onMoreClicked: {
moreActionsDrawer.openTriggered()
}
}
DrawerType2 { DrawerType2 {
id: moreActionsDrawer id: moreActionsDrawer