|
@@ -262,7 +262,7 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|
|
icon="",
|
|
|
description=I18N_CATALOG.i18nc("@action:tooltip", "Track the print in Ultimaker Digital Factory"),
|
|
|
button_align=message.ActionButtonAlignment.ALIGN_RIGHT)
|
|
|
- df_url = f"https://digitalfactory.ultimaker.com/app/jobs/{self._cluster.cluster_id}?utm_source=cura&utm_medium=software&utm_campaign=monitor-button"
|
|
|
+ df_url = f"https://digitalfactory.ultimaker.com/app/jobs/{self._cluster.cluster_id}?utm_source=cura&utm_medium=software&utm_campaign=message-printjob-sent"
|
|
|
message.pyQtActionTriggered.connect(lambda message, action: (QDesktopServices.openUrl(QUrl(df_url)), message.hide()))
|
|
|
|
|
|
message.show()
|
|
@@ -334,11 +334,11 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|
|
|
|
|
@pyqtSlot(name="openPrintJobControlPanel")
|
|
|
def openPrintJobControlPanel(self) -> None:
|
|
|
- QDesktopServices.openUrl(QUrl(self.clusterCloudUrl))
|
|
|
+ QDesktopServices.openUrl(QUrl(self.clusterCloudUrl)+ "?utm_source=cura&utm_medium=software&utm_campaign=monitor-manage-browser")
|
|
|
|
|
|
@pyqtSlot(name="openPrinterControlPanel")
|
|
|
def openPrinterControlPanel(self) -> None:
|
|
|
- QDesktopServices.openUrl(QUrl(self.clusterCloudUrl))
|
|
|
+ QDesktopServices.openUrl(QUrl(self.clusterCloudUrl + "?utm_source=cura&utm_medium=software&utm_campaign=monitor-manage-printer"))
|
|
|
|
|
|
@property
|
|
|
def clusterData(self) -> CloudClusterResponse:
|
|
@@ -357,4 +357,4 @@ class CloudOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|
|
"""Gets the URL on which to monitor the cluster via the cloud."""
|
|
|
|
|
|
root_url_prefix = "-staging" if self._account.is_staging else ""
|
|
|
- return "https://mycloud{}.ultimaker.com/app/jobs/{}".format(root_url_prefix, self.clusterData.cluster_id)
|
|
|
+ return "https://digitalfactory{}.ultimaker.com/app/jobs/{}".format(root_url_prefix, self.clusterData.cluster_id)
|