Arthur 1 месяц назад
Родитель
Сommit
24642be351

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
netbox/project-static/dist/netbox.js.map


+ 3 - 0
netbox/project-static/src/select/classes/dynamicTomSelect.ts

@@ -77,6 +77,8 @@ export class DynamicTomSelect extends TomSelect {
 
     const currentValue = self.getValue();
 
+    // Automatically clear any cached options. (Only options included
+    // in the API response should be present.)
     self.clearOptions();
 
     // Clear user_options to prevent the pre-selected option from being treated specially
@@ -86,6 +88,7 @@ export class DynamicTomSelect extends TomSelect {
       self.addOption(self.nullOption);
     }
 
+    // Get the API request URL. If none is provided, abort as no request can be made.
     const url = self.getRequestUrl(value);
     if (!url) {
       return;

Некоторые файлы не были показаны из-за большого количества измененных файлов