parent
2cd6de11c9
commit
b8bc0a9631
|
@ -9,6 +9,8 @@ import StatusQ.Controls 0.1
|
||||||
import StatusQ.Controls.Validators 0.1
|
import StatusQ.Controls.Validators 0.1
|
||||||
|
|
||||||
import utils 1.0
|
import utils 1.0
|
||||||
|
import StatusQ 0.1
|
||||||
|
import SortFilterProxyModel 0.2
|
||||||
|
|
||||||
import "../stores"
|
import "../stores"
|
||||||
import "../panels"
|
import "../panels"
|
||||||
|
@ -49,6 +51,20 @@ Item {
|
||||||
id: d
|
id: d
|
||||||
readonly property bool isEdit: root.store.editMode
|
readonly property bool isEdit: root.store.editMode
|
||||||
|
|
||||||
|
readonly property SortFilterProxyModel originModelWithoutWatchOnlyAcc: SortFilterProxyModel {
|
||||||
|
id: originModelWithoutWatchOnlyAcc
|
||||||
|
objectName: "originModelWithoutWatchOnlyAcc"
|
||||||
|
sourceModel: root.store.originModel
|
||||||
|
|
||||||
|
readonly property string addWatchOnlyAccKeyUid: Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc
|
||||||
|
filters: [
|
||||||
|
FastExpressionFilter {
|
||||||
|
expression: model.keyPair.keyUid !== originModelWithoutWatchOnlyAcc.addWatchOnlyAccKeyUid
|
||||||
|
expectedRoles: ["keyPair"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
function openEmojiPopup(showLeft) {
|
function openEmojiPopup(showLeft) {
|
||||||
if (!root.store.emojiPopup) {
|
if (!root.store.emojiPopup) {
|
||||||
return
|
return
|
||||||
|
@ -171,7 +187,7 @@ Item {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
userProfilePublicKey: root.store.userProfilePublicKey
|
userProfilePublicKey: root.store.userProfilePublicKey
|
||||||
originModel: root.store.editMode? [] : root.store.originModel
|
originModel: root.store.editMode? [] : d.originModelWithoutWatchOnlyAcc
|
||||||
selectedOrigin: root.store.selectedOrigin
|
selectedOrigin: root.store.selectedOrigin
|
||||||
caretVisible: !root.store.editMode
|
caretVisible: !root.store.editMode
|
||||||
enabled: !root.store.editMode
|
enabled: !root.store.editMode
|
||||||
|
|
Loading…
Reference in New Issue