2020-05-01 19:21:50 +10:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import Clipboard 0.1
|
|
|
|
import "../Base"
|
|
|
|
|
|
|
|
HMenu {
|
|
|
|
property string userId
|
|
|
|
|
|
|
|
|
|
|
|
HMenuItem {
|
|
|
|
icon.name: "account-settings"
|
|
|
|
text: qsTr("Account settings")
|
2020-07-10 03:13:17 +10:00
|
|
|
onTriggered: pageLoader.showPage(
|
2020-05-01 19:21:50 +10:00
|
|
|
"AccountSettings/AccountSettings", { "userId": userId },
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
HMenuItem {
|
|
|
|
icon.name: "menu-add-chat"
|
|
|
|
text: qsTr("Add new chat")
|
2020-07-10 03:13:17 +10:00
|
|
|
onTriggered: pageLoader.showPage("AddChat/AddChat", {userId: userId})
|
2020-05-01 19:21:50 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
HMenuItem {
|
|
|
|
icon.name: "copy-user-id"
|
|
|
|
text: qsTr("Copy user ID")
|
|
|
|
onTriggered: Clipboard.text = userId
|
|
|
|
}
|
|
|
|
|
|
|
|
HMenuItemPopupSpawner {
|
|
|
|
icon.name: "sign-out"
|
|
|
|
icon.color: theme.colors.negativeBackground
|
|
|
|
text: qsTr("Sign out")
|
|
|
|
|
|
|
|
popup: "Popups/SignOutPopup.qml"
|
|
|
|
properties: { "userId": userId }
|
|
|
|
}
|
|
|
|
}
|