diff --git a/dashboard/src/views/AppstoreView.vue b/dashboard/src/views/AppstoreView.vue index 01e0b30e4..9b54a7919 100644 --- a/dashboard/src/views/AppstoreView.vue +++ b/dashboard/src/views/AppstoreView.vue @@ -71,6 +71,7 @@ const searchInput = useTemplateRef('searchInput'); const inputDialog = useTemplateRef('inputDialog'); const features = inject('features'); const installedApps = ref([]); +const appstoreTokenError = ref(false); const category = ref(''); const categories = [ @@ -113,7 +114,10 @@ function onInstall(app) { async function getAppList() { const [error, result] = await appstoreModel.list(); - if (error) return console.error(error); + if (error) { + if (error.status === 402) return appstoreTokenError.value = true; + return console.error(error); + } apps.value = result; } @@ -173,32 +177,35 @@ onMounted(async () => { -
- - -
-
- -
-

{{ $t('appstore.category.popular') }}

-
- +
+ Cloudron not registered. Reset registration here. +
+
+
+ +
-

{{ $t('appstore.category.all') }}

-
- +
+

{{ $t('appstore.category.popular') }}

+
+ +
+ +

{{ $t('appstore.category.all') }}

+
+ +
+
+
+
+ +
-
-
- -
-
-