/*!
 *
 * Copyright (c) 2019-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    ManagerStack.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      11-May-2021
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  21-Oct-2019
 *
 */

// Qt
import QtQuick 2.12

// Project
//  Qml imports
import "qrc:/globals"
import "qrc:/components"

/*!
 * \brief   ManagerStack is the screen
 * which contains the main stack for all the Trearment Manager screens
 * This is the screen which will show up when "Manager" option
 * is selected from the main menu.
 */
StackItem { id : _root
    stackView.initialItem   : _managerHome

    ScreenItem { id: _managerHome
        PlaceHolderText { screenName: qsTr("Treatment Management") }
        onVisibleChanged: if (visible) _mainMenu.hidden = true
    }

    onVisibleChanged: {
        if (visible) {
            _mainMenu.hidden = false
        }
        else {
            stackView.initialItem = null
        }
    }
}
