Notify user of proper way to remove cloud printer

CURA-7436
This commit is contained in:
Nino van Hooff 2020-05-18 14:44:35 +02:00
parent 9344bb8494
commit 3d19e75c82
2 changed files with 9 additions and 0 deletions

View file

@ -136,6 +136,11 @@ UM.ManagementPage
{
id: confirmDialog
object: base.currentItem && base.currentItem.name ? base.currentItem.name : ""
text: base.currentItem && base.currentItem.hasCloudConnection?
catalog.i18nc("@label (%1 is object name)", "%1 will be removed but will be added again in the next sync. To remove the printer permanently, visit <a href='https://mycloud.ultimaker.com/'>Ultimaker Digital Factory</a>").arg(base.currentItem.name)
:
catalog.i18nc("@label (%1 is object name)", "Are you sure you wish to remove %1? This cannot be undone!").arg(base.currentItem.name)
;
onYes:
{
Cura.MachineManager.removeMachine(base.currentItem.id)