diff --git a/resources/js/components/AddonDetails.vue b/resources/js/components/AddonDetails.vue
index d154016a0f7..4dbfdded788 100644
--- a/resources/js/components/AddonDetails.vue
+++ b/resources/js/components/AddonDetails.vue
@@ -19,7 +19,7 @@
-
+
@@ -69,10 +69,6 @@ import AddonEditions from './addons/Editions.vue';
},
computed: {
- toEleven() {
- return {timeout: Statamic.$config.get('ajaxTimeout')};
- },
-
package() {
return this.addon.package;
},
@@ -91,6 +87,19 @@ import AddonEditions from './addons/Editions.vue';
link() {
return __('Learn more about :link', { link: `${__('Addons')}`}) + '.';
},
+
+ installCommand() {
+ switch (this.package) {
+ case 'statamic/collaboration':
+ return 'php please install:collaboration';
+ case 'statamic/eloquent-driver':
+ return 'php please install:eloquent-driver';
+ case 'statamic/ssg':
+ return 'php please install:ssg';
+ default:
+ return `composer require ${this.package}`;
+ }
+ },
},
created() {