mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-30 09:47:43 +03:00
Make some CredentialItem properties readonly
This commit is contained in:
parent
fbd3ad41db
commit
ad449fd1f8
@ -6,15 +6,7 @@ Rectangle {
|
||||
property var code
|
||||
property var credential
|
||||
property bool isExpired: true
|
||||
property bool hasCustomTimeBar: (
|
||||
credential.period !== 30
|
||||
&& (credential.oath_type === 'TOTP' || credential.touch)
|
||||
)
|
||||
property bool isSelected: false
|
||||
property color textColor: (isSelected
|
||||
? palette.highlightedText
|
||||
: palette.windowText
|
||||
)
|
||||
property bool timerRunning: false
|
||||
property color unselectedColor
|
||||
|
||||
@ -22,6 +14,15 @@ Rectangle {
|
||||
signal doubleClick(var mouse)
|
||||
signal refresh(bool force)
|
||||
|
||||
readonly property bool hasCustomTimeBar: (
|
||||
credential.period !== 30
|
||||
&& (credential.oath_type === 'TOTP' || credential.touch)
|
||||
)
|
||||
readonly property color textColor: (isSelected
|
||||
? palette.highlightedText
|
||||
: palette.windowText
|
||||
)
|
||||
|
||||
color: (isSelected
|
||||
? palette.highlight
|
||||
: unselectedColor
|
||||
|
Loading…
Reference in New Issue
Block a user