Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325715
TypingIndicator.qml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
831 B
Referenced Files
None
Subscribers
None
TypingIndicator.qml
View Options
/*
* This file is part of kazv.
* SPDX-FileCopyrightText: 2020-2023 tusooa <tusooa@kazv.moe>
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import
QtQuick
2.15
import
QtQuick
.
Layouts
1.15
import
QtQuick
.
Controls
2.15
Label
{
id: typingIndicator
property
var
typingUsers:
null
property
var
count:
typingUsers
?
typingUsers.count :
0
property
var
firstTypingUser:
typingUsers
&&
typingUsers
.
at
(
0
)
property
var
secondTypingUser:
typingUsers
&&
typingUsers
.
at
(
1
)
visible:
count
text:
getText
()
function
getName
(
user
)
{
return
user
?
(
user
.
name
||
user
.
userId
)
:
''
;
}
function
getText
()
{
console
.
log
(
'getText'
,
count
);
return
l10n
.
get
(
'typing-indicator'
,
{
otherNum:
count
-
1
,
typingUser:
getName
(
firstTypingUser
),
secondTypingUser:
getName
(
secondTypingUser
),
})
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:20 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
87189
Default Alt Text
TypingIndicator.qml (831 B)
Attached To
Mode
rK kazv
Attached
Detach File
Event Timeline
Log In to Comment