diff --git a/app/Livewire/PropertiesPlot.php b/app/Livewire/PropertiesPlot.php index 3717f739..644e71e0 100644 --- a/app/Livewire/PropertiesPlot.php +++ b/app/Livewire/PropertiesPlot.php @@ -10,6 +10,17 @@ class PropertiesPlot extends Component public $name; + public $name_corrections = [ + 'van_der_walls_volume' => 'Van der Waals volume + (Vw + ) + ', + 'fractioncsp3' => 'Fraction Csp3', + 'qed_drug_likeliness' => 'QED drug likeness', + 'hydrogen_bond_acceptors_lipinski' => 'Hydrogen bond acceptors Lipinski', + 'hydrogen_bond_donors_lipinski' => 'Hydrogen bond donors Lipinski', + ]; + public function mount($property, $name) { $this->property = $property; diff --git a/resources/views/livewire/density-plot.blade.php b/resources/views/livewire/density-plot.blade.php index 4515ac92..a6cb3d2e 100644 --- a/resources/views/livewire/density-plot.blade.php +++ b/resources/views/livewire/density-plot.blade.php @@ -1,9 +1,13 @@
-

- NP-Likeliness +

+ NP-Likeness + + (DOI) +

-
+ +
@@ -150,4 +154,4 @@ } -
+
\ No newline at end of file diff --git a/resources/views/livewire/properties-plot.blade.php b/resources/views/livewire/properties-plot.blade.php index 84c862a9..44d9b655 100644 --- a/resources/views/livewire/properties-plot.blade.php +++ b/resources/views/livewire/properties-plot.blade.php @@ -1,7 +1,7 @@

- {{ ucfirst(str_replace('_', ' ', $name)) }} + {!! $name_corrections[$name] ?? ucfirst(str_replace('_', ' ', $name)) !!}