summaryrefslogtreecommitdiff
path: root/Link.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-12 12:17:45 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-12 12:17:45 +0800
commit088159182a5a6d3533a7812b48323125fefc1e61 (patch)
tree968e5dd4ddabd16b90b830ec11fe2cc667a89862 /Link.qml
parente5429cf6eb8f83be50b4fb7d764375f7c3713265 (diff)
Init shop client right away
to avoid it getting re-initialised if we ever need to request catalog again.
Diffstat (limited to 'Link.qml')
-rw-r--r--Link.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/Link.qml b/Link.qml
index 199d552..2bcacdc 100644
--- a/Link.qml
+++ b/Link.qml
@@ -13,7 +13,7 @@ Rectangle {
}
Text {
objectName: "link"
- signal catalog(string brand)
+ signal activated(string arg)
function push(view, arg) {
stack.push(view + ".qml", {
"arg": arg
@@ -24,7 +24,7 @@ Rectangle {
Layout.alignment: Qt.AlignCenter
text: "<a href=\"https://darapsa.com/" + arg + "\">https://darapsa.com/" + arg + "</a>"
linkColor: "#ffffff"
- onLinkActivated: catalog(arg)
+ onLinkActivated: activated(arg)
}
}
}