Переглянути джерело

Add LINKED_CARDS_ENABLED env var

Akuket 5 роки тому
батько
коміт
07724f99ae
5 змінених файлів з 12 додано та 1 видалено
  1. 1 0
      Dockerfile
  2. 3 1
      docker-compose.yml
  3. 4 0
      models/settings.js
  4. 0 0
      snap-src/bin/config
  5. 4 0
      snap-src/bin/wekan-help

+ 1 - 0
Dockerfile

@@ -111,6 +111,7 @@ ENV BUILD_DEPS="apt-utils libarchive-tools gnupg gosu wget curl bzip2 g++ build-
     CORS_ALLOW_HEADERS="" \
     CORS_ALLOW_HEADERS="" \
     CORS_EXPOSE_HEADERS="" \
     CORS_EXPOSE_HEADERS="" \
     DEFAULT_AUTHENTICATION_METHOD=""
     DEFAULT_AUTHENTICATION_METHOD=""
+    LINKED_CARDS_ENABLED=true
 
 
 # Copy the app to the image
 # Copy the app to the image
 COPY ${SRC_PATH} /home/wekan/app
 COPY ${SRC_PATH} /home/wekan/app

+ 3 - 1
docker-compose.yml

@@ -559,7 +559,9 @@ services:
       # example : LOGOUT_ON_MINUTES=55
       # example : LOGOUT_ON_MINUTES=55
       #- LOGOUT_ON_MINUTES=
       #- LOGOUT_ON_MINUTES=
       #-------------------------------------------------------------------
       #-------------------------------------------------------------------
-
+      # LINKED_CARDS_ENABLED : Enable or not the linked cards feature
+      # example : LINKED_CARDS_ENABLED=false
+      - LINKED_CARDS_ENABLED=true
     depends_on:
     depends_on:
       - wekandb
       - wekandb
 
 

+ 4 - 0
models/settings.js

@@ -334,6 +334,10 @@ if (Meteor.isServer) {
     getDefaultAuthenticationMethod() {
     getDefaultAuthenticationMethod() {
       return process.env.DEFAULT_AUTHENTICATION_METHOD;
       return process.env.DEFAULT_AUTHENTICATION_METHOD;
     },
     },
+
+    getLinkedCardsEnabled() {
+      return process.env.LINKED_CARDS_ENABLED === 'true';
+    }
   });
   });
 }
 }
 
 

Різницю між файлами не показано, бо вона завелика
+ 0 - 0
snap-src/bin/config


+ 4 - 0
snap-src/bin/wekan-help

@@ -444,6 +444,10 @@ echo -e "Default authentication method."
 echo -e "The default authentication method used if a user does not exist to create and authenticate. Method can be password or ldap."
 echo -e "The default authentication method used if a user does not exist to create and authenticate. Method can be password or ldap."
 echo -e "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
 echo -e "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
 echo -e "\n"
 echo -e "\n"
+echo -e "Linked cards enabled."
+echo -e "Enable or not the linked cards feature."
+echo -e "\t$ snap set $SNAP_NAME linked-cards-enabled='false'"
+echo -e "\n"
 # parse config file for supported settings keys
 # parse config file for supported settings keys
 echo -e "wekan supports settings keys"
 echo -e "wekan supports settings keys"
 echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"
 echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"

Деякі файли не було показано, через те що забагато файлів було змінено