Refactor removal warning message to CloudOutputDeviceManager

CURA-7436
This commit is contained in:
Nino van Hooff 2020-05-18 16:22:55 +02:00
parent c61f5a162e
commit 252b993169
3 changed files with 21 additions and 11 deletions

View file

@ -136,11 +136,7 @@ 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)
;
text: base.currentItem ? base.currentItem.removalWarning : "";
onYes:
{
Cura.MachineManager.removeMachine(base.currentItem.id)