AccountDetails.qml 702 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright (c) 2020 Ultimaker B.V.
  2. // Cura is released under the terms of the LGPLv3 or higher.
  3. import QtQuick 2.10
  4. import QtQuick.Controls 2.3
  5. import UM 1.4 as UM
  6. import Cura 1.1 as Cura
  7. Item
  8. {
  9. property var profile: Cura.API.account.userProfile
  10. property bool loggedIn: Cura.API.account.isLoggedIn
  11. property var profileImage: Cura.API.account.profileImageUrl
  12. Loader
  13. {
  14. id: accountOperations
  15. anchors.centerIn: parent
  16. sourceComponent: loggedIn ? userOperations : generalOperations
  17. }
  18. Component
  19. {
  20. id: userOperations
  21. UserOperations { }
  22. }
  23. Component
  24. {
  25. id: generalOperations
  26. GeneralOperations { }
  27. }
  28. }