Fix qml warnings
This commit is contained in:
@@ -34,8 +34,8 @@ Kirigami.Page {
|
|||||||
enabled: root.model
|
enabled: root.model
|
||||||
target: root.room
|
target: root.room
|
||||||
function onChanged(): void {
|
function onChanged(): void {
|
||||||
root.contentJson = model.stateEventContentJson(root.type, root.stateKey);
|
root.contentJson = root.model.stateEventContentJson(root.type, root.stateKey);
|
||||||
root.sourceText = model.stateEventJson(root.type, root.stateKey);
|
root.sourceText = root.model.stateEventJson(root.type, root.stateKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,8 +46,8 @@ Kirigami.Page {
|
|||||||
text: i18nc("@action As in 'edit the state of this room'", "Edit state")
|
text: i18nc("@action As in 'edit the state of this room'", "Edit state")
|
||||||
icon.name: "document-edit"
|
icon.name: "document-edit"
|
||||||
visible: root.allowEdit
|
visible: root.allowEdit
|
||||||
enabled: room.canSendState(root.type) && (!root.stateKey.startsWith("@") || root.stateKey === root.room.connection.localUserId) && root.type !== "m.room.create"
|
enabled: root.room.canSendState(root.type) && (!root.stateKey.startsWith("@") || root.stateKey === root.room.connection.localUserId) && root.type !== "m.room.create"
|
||||||
onTriggered: pageStack.pushDialogLayer(Qt.createComponent("org.kde.neochat", "EditStateDialog"), {
|
onTriggered: (root.Kirigami.PageStack.pageStack as Kirigami.PageRow).pushDialogLayer(Qt.createComponent("org.kde.neochat", "EditStateDialog"), {
|
||||||
room: root.room,
|
room: root.room,
|
||||||
type: root.type,
|
type: root.type,
|
||||||
stateKey: root.stateKey,
|
stateKey: root.stateKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user