Przeglądaj źródła

Disable branch change for docker users

causefx 7 lat temu
rodzic
commit
f56fc3aa80
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      api/functions/organizr-functions.php

+ 3 - 1
api/functions/organizr-functions.php

@@ -439,7 +439,9 @@ function getSettingsMain()
 				'name' => 'branch',
 				'name' => 'branch',
 				'label' => 'Branch',
 				'label' => 'Branch',
 				'value' => $GLOBALS['branch'],
 				'value' => $GLOBALS['branch'],
-				'options' => getBranches()
+				'options' => getBranches(),
+				'disabled' => $GLOBALS['branch'],
+				'help' => ($GLOBALS['docker']) ? 'Since you are using the Official Docker image, Change the image to change the branch' : 'Choose which branch to download from'
 			),
 			),
 			array(
 			array(
 				'type' => 'button',
 				'type' => 'button',