2
import Ubuntu.Components 1.0
3
import Ubuntu.Components.Popups 1.0
8
title: deviceId >= 0 ? i18n.tr("Delete device") : i18n.tr("Delete emulator")
9
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?")
11
property string emulatorImageName
12
property int deviceId: -1
15
text: i18n.tr("Cancel")
16
color: UbuntuColors.warmGrey
17
onClicked: PopupUtils.close(dialogue)
20
text: i18n.tr("Delete")
21
color: UbuntuColors.orange
24
console.log("Deleting device: "+dialogue.deviceId);
25
devicesModel.deleteDevice(dialogue.deviceId);
27
console.log("Deleting emu: "+dialogue.emulatorImageName);
28
devicesModel.deleteEmulator(dialogue.emulatorImageName);
30
PopupUtils.close(dialogue);