Browse Source

v0.2-bugfixes

Olivier Massot 3 years ago
parent
commit
25a5ba6e5e

+ 12 - 0
README.md

@@ -91,6 +91,18 @@ Pour regénérer la documentation automatique:
 
     yarn docs
 
+### Déboguer sur un serveur distant
+
+Pour déboguer sur un serveur distant, comme preprod :
+
+     pm2 stop app
+     yarn dev
+
+À partir de là, on peut accéder au site en mode dev.
+
+Une fois le bug corrigé, interrompre le yarn dev, et relancer avec
+
+    pm2 start app
 
 ## Plus d'infos
 

+ 3 - 0
composables/layout/Menus/configurationMenu.ts

@@ -31,14 +31,17 @@ class ConfigurationMenu extends BaseMenu implements Menu {
 
     if (this.$ability.can('display', 'organization_page')) {
       children.push(this.constructMenu('organization_page', undefined, `/main/organizations/${this.$store.state.profile.organization.id}/dashboard`, true))
+      // children.push(this.constructMenu('organization_page', undefined, `/organization`, true))
     }
 
     if (this.$ability.can('display', 'cmf_licence_page')) {
       children.push(this.constructMenu('cmf_licence_generate', undefined, '/licence_cmf/organization', true))
+      // children.push(this.constructMenu('cmf_licence_generate', undefined, '/cmf_licence/organization', false))
     }
 
     if (this.$ability.can('display', 'parameters_page')) {
       children.push(this.constructMenu('parameters', undefined,`/main/edit/parameters/${this.$store.state.profile.organization.id}`, true))
+      // children.push(this.constructMenu('parameters', undefined,`/parameters`, true))
     }
 
     if (this.$ability.can('display', 'place_page')) {

+ 4 - 2
composables/layout/Menus/websiteMenu.ts

@@ -28,8 +28,10 @@ class WebsiteMenu extends BaseMenu implements Menu {
    * @return {ItemMenu | null}
    */
   getMenu (): ItemMenu | null {
-    if (!this.$store.state.profile.organization.website && this.$store.state.profile.access.isAdminAccess) {
-      return this.constructMenu('advanced_modification', {name: 'fa-globe-americas'}, this.getWebsite(this.$store.state.profile.organization) + '/typo3', false, undefined, true)
+    const website = this.getWebsite(this.$store.state.profile.organization)
+
+    if (website && this.$store.state.profile.access.isAdminAccess) {
+      return this.constructMenu('advanced_modification', {name: 'fa-globe-americas'},  website+ '/typo3', false, undefined, true)
     }
     return null
   }

+ 2 - 3
pages/subscription.vue

@@ -32,7 +32,7 @@ Page 'Mon abonnement'
                       </div>
                     </td>
                   </tr>
-                  <tr v-if="show_sms_row">
+                  <tr v-if="$can('manage', 'texto')">
                     <td>{{ $t('remaining_sms_credit') }}</td>
                     <td>
                       <UiTemplateMobytStatus @disabled_sms_row="show_sms_row = false"/>
@@ -301,8 +301,7 @@ export default defineComponent({
     return {
       organizationProfile,
       dolibarrAccount,
-      dolibarrAccountFetch: fetchState,
-      show_sms_row: true
+      dolibarrAccountFetch: fetchState
     }
   },
   methods: {

+ 0 - 0
plugins/sse.ts