Refactor dialog, to keep announcements on top
This commit is contained in:
1 parent
fa3921cd33
commit
f89935a6f9
21 files changed
+179
-62
No files matched your search
@@ -57,8 +57,14 @@ namespace Http
|
||||
message = `The code to export the registry data is: ${requestCode}.
|
||||
This code will expire in 2 minutes.
|
||||
If you did not request to export the registry, please close this dialog.`
|
||||
dialog = DialogUtils.ShowDialog(message, "Export registry")
|
||||
dialog.addField("isExportRegistryCodeDialog", "boolean", false)
|
||||
dialog = DialogUtils.ShowDialogEx({
|
||||
message: message
|
||||
title: "Export registry"
|
||||
alwaysOnTop: true
|
||||
})
|
||||
if dialog <> invalid
|
||||
dialog.addField("isExportRegistryCodeDialog", "boolean", false)
|
||||
end if
|
||||
|
||||
response.Default(204, "OK")
|
||||
return true
|
||||
@@ -71,8 +77,7 @@ If you did not request to export the registry, please close this dialog.`
|
||||
|
||||
requestCode = m.requestCode
|
||||
m.requestCode = invalid
|
||||
scene = m.task.getScene()
|
||||
dialog = scene.dialog
|
||||
dialog = m.task.getScene().dialog
|
||||
if dialog = invalid or not dialog.hasField("isExportRegistryCodeDialog")
|
||||
response.Default(400, "Invalid code")
|
||||
return true
|
||||
|
||||
Reference in new issue
Block a user