From ab8f5c12881a2d67d87178fce036ac4e97375695 Mon Sep 17 00:00:00 2001 From: Liv Date: Tue, 8 Aug 2017 13:55:07 -0700 Subject: [PATCH] add user logging detail message --- interface/src/Application.cpp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 4e732dad89..feb64c8b93 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -6125,11 +6125,12 @@ bool Application::askToWearAvatarAttachmentUrl(const QString& url) { } bool Application::askToReplaceDomainContent(const QString& url) { - + QString methodDetails; if (DependencyManager::get()->getThisNodeCanReplaceContent()) { // Create a confirmation dialog when this call is made const int MAX_CHARACTERS_PER_LINE = 90; - static const QString infoText = simpleWordWrap("Your domain's content will be replaced with a new content set. If you want to restore your domain from the current domain content, save a manual backup of your" + static const QString infoText = simpleWordWrap("Your domain's content will be replaced with a new content set." + "If you want to restore your domain from the current domain content, save a manual backup of your" "models.json.gz file, usually stored at:", MAX_CHARACTERS_PER_LINE) + "\nC:/Users/[username]/AppData/Roaming/High Fidelity/assignment-client/entities/models.json.gz"; @@ -6151,11 +6152,20 @@ bool Application::askToReplaceDomainContent(const QString& url) { return true; }); DependencyManager::get()->handleLookupString(DOMAIN_SPAWNING_POINT); - + methodDetails = "SuccessfulRequestToReplaceContent"; + } else { + methodDetails = "UserDeclinedToReplaceContent"; } } else { - OffscreenUi::warning("Unable to replace content", "You do not have permissions to replace domain content", QMessageBox::Ok, QMessageBox::Ok); + methodDetails = "UserDoesNotHavePermissionToReplaceContent"; + OffscreenUi::warning("Unable to replace content", "You do not have permissions to replace domain content", + QMessageBox::Ok, QMessageBox::Ok); } + QJsonObject messageProperties = { + { "status", methodDetails }, + { "content_set_url", url } + }; + UserActivityLogger::getInstance().logAction("replace_domain_content", messageProperties); return false; }