mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 11:38:57 +00:00
17 lines
464 B
QML
17 lines
464 B
QML
import QtQml 2.15
|
|
|
|
QtObject {
|
|
id: root
|
|
|
|
function toggleCentralizedMetrics(enabled) {
|
|
metrics.toggleCentralizedMetrics(enabled)
|
|
}
|
|
|
|
function addCentralizedMetric(eventName, eventValue = null) {
|
|
let eventValueJsonStr = !!eventValue ? JSON.stringify(eventValue) : ""
|
|
metrics.addCentralizedMetric(eventName, eventValueJsonStr)
|
|
}
|
|
|
|
readonly property bool isCentralizedMetricsEnabled : metrics.isCentralizedMetricsEnabled
|
|
}
|