2
import Ubuntu.Components 1.0
3
import Ubuntu.Components.Popups 1.0
7
title: deviceId >= 0 ? i18n.tr("Delete device") : i18n.tr("Delete emulator")
8
text: deviceId >= 0 ? i18n.tr("Are you sure you want to delete this device?") : i18n.tr("Are you sure you want to delete this emulator?")
10
property string emulatorImageName
11
property int deviceId: -1
14
text: i18n.tr("Cancel")
15
color: UbuntuColors.warmGrey
16
onClicked: PopupUtils.close(dialogue)
19
text: i18n.tr("Delete")
20
color: UbuntuColors.orange
23
console.log("Deleting device: "+dialogue.deviceId);
24
devicesModel.deleteDevice(dialogue.deviceId);
26
console.log("Deleting emu: "+dialogue.emulatorImageName);
27
devicesModel.deleteEmulator(dialogue.emulatorImageName);
29
PopupUtils.close(dialogue);