overte-JulianGro/interface/resources/qml/dialogs/TabletConnectionFailureDialog.qml
Alezia Kurdis 8fd000e705
Replace reference to EXPLORE app
Replace reference to EXPLORE app to PLACES app in Connection error message.
2023-07-10 21:50:03 -04:00

32 lines
1.3 KiB
QML

//
// TabletConnectionFailureDialog.qml
//
// Created by Vlad Stelmahovsky on 29 Mar 2017
// Copyright 2017 High Fidelity, Inc.
// Copyright 2023, Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
import Hifi 1.0
import QtQuick 2.5
import QtQuick.Dialogs 1.2 as OriginalDialogs
Item {
Component.onCompleted: {
var object = tabletRoot.messageBox({
icon: OriginalDialogs.StandardIcon.Warning,
buttons: OriginalDialogs.StandardButton.Ok,
defaultButton: OriginalDialogs.StandardButton.NoButton,
title: "No Connection",
text: "Unable to connect to this domain. Click the 'PLACES' button on the toolbar to visit another domain."
});
object.selected.connect(function(button) {
if (button === OriginalDialogs.StandardButton.Ok) {
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
tablet.gotoHomeScreen()
}
});
}
}