aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2023-07-21 18:29:34 +0200
committerGitHub <noreply@github.com>2023-07-21 18:29:34 +0200
commitd255b89d77f7a88795dd4e5c5c3a5828bb5d51cc (patch)
tree5e32d1d32e90d03c1a814f5d72fc2c8bfbb7b264 /apps
parentd0957ffd977839367b376fae55b48ae34440350e (diff)
parent1b9593b4ce4c2fde1fc6e9f63272acfadc82ed54 (diff)
downloadnextcloud-server-d255b89d77f7a88795dd4e5c5c3a5828bb5d51cc.tar.gz
nextcloud-server-d255b89d77f7a88795dd4e5c5c3a5828bb5d51cc.zip
Merge pull request #39527 from nextcloud/fix/39526/dashboard-hide-weather-credits
Only show weather credits if necessary
Diffstat (limited to 'apps')
-rw-r--r--apps/dashboard/src/DashboardApp.vue20
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue
index ff5e9b5eacc..993340dae36 100644
--- a/apps/dashboard/src/DashboardApp.vue
+++ b/apps/dashboard/src/DashboardApp.vue
@@ -77,15 +77,17 @@
<a v-if="isAdmin" :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the App Store') }}</a>
- <h3>{{ t('dashboard', 'Weather service') }}</h3>
- <p>
- {{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}
- </p>
- <p class="credits--end">
- <a href="https://api.met.no/doc/TermsOfService" target="_blank" rel="noopener">{{ t('dashboard', 'Weather data from Met.no') }}</a>,
- <a href="https://wiki.osmfoundation.org/wiki/Privacy_Policy" target="_blank" rel="noopener">{{ t('dashboard', 'geocoding with Nominatim') }}</a>,
- <a href="https://www.opentopodata.org/#public-api" target="_blank" rel="noopener">{{ t('dashboard', 'elevation data from OpenTopoData') }}</a>.
- </p>
+ <div v-if="statuses.weather && isStatusActive('weather')">
+ <h3>{{ t('dashboard', 'Weather service') }}</h3>
+ <p>
+ {{ t('dashboard', 'For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information.') }}
+ </p>
+ <p class="credits--end">
+ <a href="https://api.met.no/doc/TermsOfService" target="_blank" rel="noopener">{{ t('dashboard', 'Weather data from Met.no') }}</a>,
+ <a href="https://wiki.osmfoundation.org/wiki/Privacy_Policy" target="_blank" rel="noopener">{{ t('dashboard', 'geocoding with Nominatim') }}</a>,
+ <a href="https://www.opentopodata.org/#public-api" target="_blank" rel="noopener">{{ t('dashboard', 'elevation data from OpenTopoData') }}</a>.
+ </p>
+ </div>
</div>
</NcModal>
</div>