Skip to content

Commit

Permalink
feat(dedicated): add ability to choose the partitioning scheme
Browse files Browse the repository at this point in the history
ref: MANAGER-11680
Signed-off-by: Jean-Baptiste Delon <[email protected]>
  • Loading branch information
JayBeeDe committed Aug 9, 2023
1 parent 8febde3 commit 8ac58a2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
"server_configuration_installation_ovh_step2_remaining_size": "Espace restant :",
"server_configuration_installation_ovh_step2_remaining_size_button": "Espace restant",
"server_configuration_installation_ovh_step2_info": "Configuration du schéma de partition de la distribution <b>{{t0}}</b>",
"server_configuration_installation_ovh_step2_scheme": "Choix du schéma de partion :",
"server_configuration_installation_ovh_step2_scheme": "Choix du schéma de partitionnement :",
"server_configuration_installation_ovh_step2_raid_hard": "(Raid hard)",
"server_configuration_installation_ovh_step2_info_partition_cachecade": "Dans une configuration CacheCade, l'espace disque dédié au cache ne peut être partitionné",
"server_configuration_installation_ovh_step2_error_empty_scheme": "Aucun schema de parition n'est compatible pour le server {{t0}} pour la distribution {{t1}}. Veuillez choisir une autre distribition.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
"server_configuration_installation_ovh_step2_remaining_size": "Espace restant :",
"server_configuration_installation_ovh_step2_remaining_size_button": "Espace restant",
"server_configuration_installation_ovh_step2_info": "Configuration du schéma de partition de la distribution <b>{{t0}}</b>",
"server_configuration_installation_ovh_step2_scheme": "Choix du schéma de partion :",
"server_configuration_installation_ovh_step2_scheme": "Choix du schéma de partitionnement :",
"server_configuration_installation_ovh_step2_raid_hard": "(Raid hard)",
"server_configuration_installation_ovh_step2_info_partition_cachecade": "Dans une configuration CacheCade, l'espace disque dédié au cache ne peut être partitionné",
"server_configuration_installation_ovh_step2_error_empty_scheme": "Aucun schema de parition n'est compatible pour le server {{t0}} pour la distribution {{t1}}. Veuillez choisir une autre distribition.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,10 +586,12 @@ angular
}

function showPartition() {
// Select hight priority partition scheme
[
$scope.installation.selectPartitionScheme,
] = $scope.installation.partitionSchemesList;
if ($scope.installation.selectPartitionScheme === null) {
// Select hight priority partition scheme
[
$scope.installation.selectPartitionScheme,
] = $scope.installation.partitionSchemesList;
}

// Get Partition list of largest partition scheme
Server.getOvhPartitionSchemesTemplatesDetail(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,20 @@ <h4 class="panel-title">
></span>
<strong
data-ng-bind="getDisplaySize(informations.remainingSize)"
></strong>
></strong
>&nbsp;
<span
data-translate="server_configuration_installation_ovh_step2_scheme"
data-ng-show="installation.partitionSchemesList.length > 1 && !installation.noPartitioning"
></span>
<select
class="form-control"
data-ng-show="installation.partitionSchemesList.length > 1 && !installation.noPartitioning"
data-ng-options="partitionScheme as partitionScheme for partitionScheme in installation.partitionSchemesList"
data-ng-model="installation.selectPartitionScheme"
data-ng-change="loadPartition()"
>
</select>
</div>

<div
Expand Down Expand Up @@ -1364,6 +1377,27 @@ <h4 class="panel-title">
data-translate="server_configuration_installation_ovh_step3_info"
></p>

<p
class="form-inline"
data-ng-show="installation.partitionSchemesList.length > 1 && installation.noPartitioning"
>
<label
for="selectPartitionScheme"
class="control-label"
data-translate="server_configuration_installation_ovh_step2_scheme"
>
</label>
<select
class="form-control"
id="selectPartitionScheme"
name="selectPartitionScheme"
data-ng-options="partitionScheme as partitionScheme for partitionScheme in installation.partitionSchemesList"
data-ng-model="installation.selectPartitionScheme"
data-ng-change="loadPartition()"
>
</select>
</p>

<div class="table-responsive">
<table class="table table-striped">
<thead>
Expand Down

0 comments on commit 8ac58a2

Please sign in to comment.