diff options
author | Julien Veyssier <julien-nc@posteo.net> | 2023-08-02 10:14:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-02 10:14:50 +0200 |
commit | c908faa3c58848ea0f1f2ca02f6257615b35971f (patch) | |
tree | 0192112fee4ac2868e572927307ec50306a0ee85 /apps | |
parent | 6044aa50667162f001f0f209953e4d857bb10191 (diff) | |
parent | 778372a46f001bbffc9664ff9fbc5402922be9a3 (diff) | |
download | nextcloud-server-c908faa3c58848ea0f1f2ca02f6257615b35971f.tar.gz nextcloud-server-c908faa3c58848ea0f1f2ca02f6257615b35971f.zip |
Merge pull request #39664 from nextcloud/backport/39527/stable26
[stable26] only show weather credits if the app is enabled and the weather statu…
Diffstat (limited to 'apps')
-rw-r--r-- | apps/dashboard/src/DashboardApp.vue | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index c5ae5c9d8e0..01b0fdb740b 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> |