Move various functions in QML code to new utils.js

This commit is contained in:
miruka
2019-07-03 22:31:29 -04:00
parent 8ac731149d
commit 5fa2892fda
10 changed files with 124 additions and 105 deletions

View File

@@ -1,6 +1,7 @@
import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../../Base"
import "../utils.js" as Utils
MouseArea {
id: memberDelegate
@@ -15,7 +16,7 @@ MouseArea {
HAvatar {
id: memberAvatar
name: member.displayName || stripUserId(member.userId)
name: member.displayName || Utils.stripUserId(member.userId)
}
HColumnLayout {