diff options
author | Thomas Citharel <tcit@tcit.fr> | 2024-03-27 15:39:15 +0100 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-03-28 15:49:34 +0000 |
commit | 79476682afda0b9e32a5c5871a15c8a58b4addb4 (patch) | |
tree | c3ecdc6e5ab115a3a6c8055c43d17eaca2170911 /apps/dashboard/src | |
parent | e317ebdbad52467d8a23841cf35bf555af516ebd (diff) | |
download | nextcloud-server-79476682afda0b9e32a5c5871a15c8a58b4addb4.tar.gz nextcloud-server-79476682afda0b9e32a5c5871a15c8a58b4addb4.zip |
fix(dashboard): do not suggest to install new widgets if appstore is disabled
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r-- | apps/dashboard/src/DashboardApp.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 3026e9c04df..18dc0a6c467 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -99,7 +99,7 @@ </li> </Draggable> - <a v-if="isAdmin" :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the App Store') }}</a> + <a v-if="isAdmin && appStoreEnabled" :href="appStoreUrl" class="button">{{ t('dashboard', 'Get more widgets from the App Store') }}</a> <div v-if="statuses.weather && isStatusActive('weather')"> <h2>{{ t('dashboard', 'Weather service') }}</h2> @@ -176,6 +176,7 @@ export default { layout: loadState('dashboard', 'layout').filter((panelId) => panels[panelId]), modal: false, appStoreUrl: generateUrl('/settings/apps/dashboard'), + appStoreEnabled: loadState('dashboard', 'appStoreEnabled', true), statuses: {}, apiWidgets: [], apiWidgetItems: {}, |