diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-08-01 18:00:30 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-08-01 18:00:30 +0200 |
commit | de0e8627e0ebca7c1d50a1b92aa5f8f207bf2d17 (patch) | |
tree | d6c7fd4a91680fa185ec3c15ed8cd851663b279d /apps/dashboard | |
parent | 46da23f0188ece6fb2ee352545191b8c68f00061 (diff) | |
download | nextcloud-server-de0e8627e0ebca7c1d50a1b92aa5f8f207bf2d17.tar.gz nextcloud-server-de0e8627e0ebca7c1d50a1b92aa5f8f207bf2d17.zip |
only show weather credits if the app is enabled and the weather status is enabled
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dashboard')
-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 109319dc99e..f0c1dfbd734 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> |