/*!
 *
 * Copyright (c) 2023-2023 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    SettingsManufacturingSetup.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      18-Jul-2023
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  18-Jul-2023
 *
 */

// Qt
import QtQuick 2.12

//  Qml imports
import "qrc:/globals"
import "qrc:/pages"
import "qrc:/compounds"

/*!
 * \brief   SettingsManufacturingSetup is the screen
 *          which helps the manufacturing during the device setup
 */
UserConfirmation { id: _root
    message         : vDevice.cryptSetupEnabled ? qsTr("Do you want to perform the %1?").arg(title.toLowerCase())
                                                : qsTr("Please wait ...")

    itemIndex       : SettingsStack.DeviceConfiguration
    notificationText: vDevice.status

    confirmVisible  : true
    confirmEnabled  : vDevice.cryptSetupEnabled
    onConfirmClicked: vDevice.cryptSetup = "setup"
}
