Fix entering thing pages
This commit is contained in:
parent
30190b1b06
commit
104d9f4459
@ -54,7 +54,7 @@ MainPageTile {
|
||||
var page;
|
||||
// Only one item? Go streight to the thing page
|
||||
if (devicesProxy.count === 1) {
|
||||
page = app.interfaceListToDevicePage([iface.name]);
|
||||
page = NymeaUtils.interfaceListToDevicePage([iface.name]);
|
||||
pageStack.push(Qt.resolvedUrl("../devicepages/" + page), {thing: devicesProxy.get(0)})
|
||||
return;
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ Page {
|
||||
|
||||
function enterPage(index) {
|
||||
var thing = thingsProxy.get(index);
|
||||
var page = app.interfaceListToDevicePage(root.shownInterfaces);
|
||||
var page = NymeaUtils.interfaceListToDevicePage(root.shownInterfaces);
|
||||
pageStack.push(Qt.resolvedUrl("../devicepages/" + page), {thing: thingsProxy.get(index)})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user