Explorar el Código

Add LINKED_CARDS_ENABLED env var

Akuket hace 5 años
padre
commit
07724f99ae
Se han modificado 5 ficheros con 12 adiciones y 1 borrados
  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_EXPOSE_HEADERS="" \
     DEFAULT_AUTHENTICATION_METHOD=""
+    LINKED_CARDS_ENABLED=true
 
 # Copy the app to the image
 COPY ${SRC_PATH} /home/wekan/app

+ 3 - 1
docker-compose.yml

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

+ 4 - 0
models/settings.js

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

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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 "\t$ snap set $SNAP_NAME default-authentication-method='ldap'"
 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
 echo -e "wekan supports settings keys"
 echo -e "values can be changed by calling\n$ snap set $SNAP_NAME <key name>='<key value>'"

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio