added busy indicator component
- replaced the image of the connect button with native rendering
This commit is contained in:
parent
b32935dd97
commit
43261f8469
10 changed files with 197 additions and 42 deletions
|
|
@ -88,7 +88,9 @@ PageType {
|
|||
descriptionText: qsTr("Добавим их в приложение, если они не отображались")
|
||||
|
||||
clickedFunction: function() {
|
||||
PageController.showBusyIndicator(true)
|
||||
InstallController.scanServerForInstalledContainers()
|
||||
PageController.showBusyIndicator(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -20,11 +20,21 @@ PageType {
|
|||
target: ExportController
|
||||
|
||||
function onGenerateConfig(isFullAccess) {
|
||||
shareConnectionDrawer.open()
|
||||
shareConnectionDrawer.contentVisible = false
|
||||
PageController.showBusyIndicator(true)
|
||||
if (isFullAccess) {
|
||||
ExportController.generateFullAccessConfig()
|
||||
} else {
|
||||
ExportController.generateConnectionConfig()
|
||||
}
|
||||
PageController.showBusyIndicator(false)
|
||||
shareConnectionDrawer.contentVisible = true
|
||||
}
|
||||
|
||||
function onExportErrorOccurred(errorMessage) {
|
||||
shareConnectionDrawer.close()
|
||||
PageController.showErrorMessage(errorMessage)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -328,7 +338,6 @@ PageType {
|
|||
} else {
|
||||
ExportController.generateConfig(true)
|
||||
}
|
||||
shareConnectionDrawer.visible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,6 +29,12 @@ PageType {
|
|||
popupErrorMessage.popupErrorMessageText = errorMessage
|
||||
popupErrorMessage.open()
|
||||
}
|
||||
|
||||
function onShowBusyIndicator(visible) {
|
||||
busyIndicator.visible = visible
|
||||
tabBarStackView.enabled = !visible
|
||||
tabBar.enabled = !visible
|
||||
}
|
||||
}
|
||||
|
||||
StackViewType {
|
||||
|
|
@ -130,4 +136,10 @@ PageType {
|
|||
id: popupErrorMessage
|
||||
}
|
||||
}
|
||||
|
||||
BusyIndicatorType {
|
||||
id: busyIndicator
|
||||
anchors.centerIn: parent
|
||||
z: 1
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue