- reduced number of parallel ajax calls by 1, when a system becomes active. (/api/signature/getAll no longer required -> removed)
- improved UI performance with long loading "description" textarea, closed #459 - fixed a bug where system panels no longer get updated when switching between map tabs - fixed a bug where "Intel/Structure" data not get removed from table when structure get removed
This commit is contained in:
@@ -891,6 +891,8 @@ class Map extends Controller\AccessController {
|
||||
// data for currently selected system
|
||||
$return->system = $system->getData();
|
||||
$return->system->signatures = $system->getSignaturesData();
|
||||
$return->system->structures = $system->getStructuresData();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,40 +13,6 @@ use Model;
|
||||
|
||||
class Signature extends Controller\AccessController {
|
||||
|
||||
|
||||
/**
|
||||
* get signature data for systems
|
||||
* -> return value of this is limited to a "SINGLE" system
|
||||
* @param \Base $f3
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function getAll(\Base $f3){
|
||||
$signatureData = [];
|
||||
$systemIds = (array)$f3->get('POST.systemIds');
|
||||
|
||||
if( !empty($systemIds) ){
|
||||
$activeCharacter = $this->getCharacter();
|
||||
|
||||
/**
|
||||
* @var Model\SystemModel $system
|
||||
*/
|
||||
$system = Model\BasicModel::getNew('SystemModel');
|
||||
foreach($systemIds as $systemId){
|
||||
$system->getById($systemId);
|
||||
if(
|
||||
!$system->dry() &&
|
||||
$system->hasAccess($activeCharacter)
|
||||
){
|
||||
$signatureData = $system->getSignaturesData();
|
||||
}
|
||||
|
||||
$system->reset();
|
||||
}
|
||||
}
|
||||
|
||||
echo json_encode($signatureData);
|
||||
}
|
||||
|
||||
/**
|
||||
* save or update a full signature data set
|
||||
* or save/update just single or multiple signature data
|
||||
|
||||
Reference in New Issue
Block a user