Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-03-29 16:52:40 +0300
committerGitHub <noreply@github.com>2022-03-29 16:52:40 +0300
commit850f813b633d27466700aee50e40bb01492c11ab (patch)
tree9ff4793a6f818f5719b1621a9df3682eb85fd3c9 /plugins/PrivacyManager/templates
parent5654ebf1b5563c27982e91167a6ff63795fe6fb5 (diff)
[Vue] migrate DoNotTrackPreferenceController to vue (#18989)
* migrate donottrackpreferencecontroller to vue * fix some bugs * Update usersOptOut.twig * Update DoNotTrackPreference.vue Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/PrivacyManager/templates')
-rw-r--r--plugins/PrivacyManager/templates/usersOptOut.twig18
1 files changed, 5 insertions, 13 deletions
diff --git a/plugins/PrivacyManager/templates/usersOptOut.twig b/plugins/PrivacyManager/templates/usersOptOut.twig
index 51fc9050a1..c9def239b9 100644
--- a/plugins/PrivacyManager/templates/usersOptOut.twig
+++ b/plugins/PrivacyManager/templates/usersOptOut.twig
@@ -23,19 +23,11 @@
{% endif %}
</p>
- <div piwik-form ng-controller="DoNotTrackPreferenceController as doNotTrack">
-
- {# {{ {'module':'PrivacyManager','nonce':nonce,'action':action} | urlRewriteWithParameters }}#DNT #}
- <div piwik-field uicontrol="radio" name="doNotTrack"
- ng-model="doNotTrack.enabled"
- options="{{ doNotTrackOptions|json_encode }}"
- value="{% if dntSupport %}1{% else %}0{% endif %}"
- inline-help="{{ 'PrivacyManager_DoNotTrack_Description'|translate|e('html_attr') }}">
- </div>
-
- <div piwik-save-button onconfirm="doNotTrack.save()" saving="doNotTrack.isLoading"></div>
-
- </div>
+ <div
+ vue-entry="PrivacyManager.DoNotTrackPreference"
+ dnt-support="{{ dntSupport|default(null)|json_encode|e('html_attr') }}"
+ do-not-track-options="{{ doNotTrackOptions|default(null)|json_encode|e('html_attr') }}"
+ ></div>
</div>
{% endif %}