Rename EditAccount to AccountSettings
This commit is contained in:
parent
e3165d0a7c
commit
484e9e595d
3
TODO.md
3
TODO.md
|
@ -4,7 +4,7 @@
|
|||
- Handle upload errors: non existent path, path is a dir, file too big, etc
|
||||
- Show real progression for mxc thumbnail loadings, uploads and downloads
|
||||
|
||||
- Login: use new exception python/qml mechanism
|
||||
- Login & upload: use new exception python/qml mechanism
|
||||
|
||||
- Support m.file thumbnails
|
||||
- Generate video thumbnails
|
||||
|
@ -34,7 +34,6 @@
|
|||
- When qml syntax highlighting supports ES6 string interpolation, use that
|
||||
|
||||
- Fixes
|
||||
- General way to show pages as loading until account is ready
|
||||
- `code` not colored in room subtitle
|
||||
- In the "Leave me" room, "join > Hi > left" aren't combined
|
||||
- Event delegates changing height don't scroll the list
|
||||
|
|
|
@ -5,7 +5,7 @@ import "../../Base"
|
|||
import "../../utils.js" as Utils
|
||||
|
||||
HPage {
|
||||
id: editAccount
|
||||
id: accountSettings
|
||||
|
||||
property int avatarPreferredSize: 256
|
||||
|
|
@ -16,8 +16,8 @@ HBox {
|
|||
export: button => {
|
||||
Utils.makeObject(
|
||||
"Dialogs/ExportKeys.qml",
|
||||
editAccount,
|
||||
{ userId: editAccount.userId },
|
||||
accountSettings,
|
||||
{ userId: accountSettings.userId },
|
||||
obj => {
|
||||
button.loading = Qt.binding(() => obj.exporting)
|
||||
obj.dialog.open()
|
||||
|
@ -27,8 +27,8 @@ HBox {
|
|||
import: button => {
|
||||
Utils.makeObject(
|
||||
"Dialogs/ImportKeys.qml",
|
||||
editAccount,
|
||||
{ userId: editAccount.userId },
|
||||
accountSettings,
|
||||
{ userId: accountSettings.userId },
|
||||
obj => { obj.dialog.open() }
|
||||
)
|
||||
},
|
|
@ -13,7 +13,7 @@ HGridLayout {
|
|||
py.callClientCoro(
|
||||
userId, "set_displayname", [nameField.field.text], () => {
|
||||
saveButton.nameChangeRunning = false
|
||||
editAccount.headerName =
|
||||
accountSettings.headerName =
|
||||
Qt.binding(() => accountInfo.display_name)
|
||||
}
|
||||
)
|
||||
|
@ -45,7 +45,7 @@ HGridLayout {
|
|||
fileDialog.selectedFile = ""
|
||||
fileDialog.file = ""
|
||||
|
||||
editAccount.headerName = Qt.binding(() => accountInfo.display_name)
|
||||
accountSettings.headerName = Qt.binding(() => accountInfo.display_name)
|
||||
}
|
||||
|
||||
columns: 2
|
||||
|
@ -58,8 +58,8 @@ HGridLayout {
|
|||
property bool changed: Boolean(sourceOverride)
|
||||
|
||||
id: avatar
|
||||
clientUserId: editAccount.userId
|
||||
userId: editAccount.userId
|
||||
clientUserId: accountSettings.userId
|
||||
userId: accountSettings.userId
|
||||
displayName: nameField.field.text
|
||||
mxc: accountInfo.avatar_url
|
||||
toolTipMxc: ""
|
||||
|
@ -151,7 +151,7 @@ HGridLayout {
|
|||
property bool changed: field.text != accountInfo.display_name
|
||||
|
||||
readonly property string fText: field.text
|
||||
onFTextChanged: editAccount.headerName = field.text
|
||||
onFTextChanged: accountSettings.headerName = field.text
|
||||
|
||||
id: nameField
|
||||
label.text: qsTr("Display name:")
|
|
@ -47,7 +47,7 @@ HPage {
|
|||
[data]
|
||||
)
|
||||
pageLoader.showPage(
|
||||
"EditAccount/EditAccount", {userId: data}
|
||||
"AccountSettings/AccountSettings", {userId: data}
|
||||
)
|
||||
|
||||
errorMessage.text = ""
|
||||
|
|
|
@ -13,7 +13,7 @@ HTileDelegate {
|
|||
theme.sidePane.account.collapsedOpacity : 1
|
||||
|
||||
shouldBeCurrent:
|
||||
window.uiState.page == "Pages/EditAccount/EditAccount.qml" &&
|
||||
window.uiState.page == "Pages/AccountSettings/AccountSettings.qml" &&
|
||||
window.uiState.pageProperties.userId == model.data.user_id
|
||||
|
||||
setCurrentTimer.running:
|
||||
|
@ -34,7 +34,7 @@ HTileDelegate {
|
|||
|
||||
onActivated: if (! disconnecting) {
|
||||
pageLoader.showPage(
|
||||
"EditAccount/EditAccount", { "userId": model.data.user_id }
|
||||
"AccountSettings/AccountSettings", { "userId": model.data.user_id }
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@ HListView {
|
|||
if (! currentItem) incrementCurrentIndex()
|
||||
|
||||
pageLoader.showPage(
|
||||
"EditAccount/EditAccount",
|
||||
"AccountSettings/AccountSettings",
|
||||
{userId: currentItem.item.delegateModel.user_id},
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user