Add action to open account editor from account switcher

This commit is contained in:
Tobias Fella
2022-11-13 19:11:50 +01:00
parent 90cbe37a92
commit 425f2a4b85

View File

@@ -136,6 +136,15 @@ QQC2.ToolBar {
anchors.margins: Kirigami.Units.smallSpacing
source: mediaId ? ("image://mxc/" + mediaId) : ""
name: Controller.activeConnection.localUser.displayName ?? Controller.activeConnection.localUser.id
actions.main: Kirigami.Action {
text: i18n("Edit this account")
iconName: "document-edit"
onTriggered: pageStack.pushDialogLayer(Qt.resolvedUrl('./AccountEditorPage.qml'), {
connection: Controller.activeConnection
}, {
title: i18n("Account editor")
});
}
}
}
ColumnLayout {