-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dedicated-cloud): add dashboard light when vcd and pcc is migrated
ref: MANAGER-15242 Signed-off-by: Thibault Barske <[email protected]>
- Loading branch information
Showing
23 changed files
with
248 additions
and
53 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
...pp/components/dedicated-cloud/dashboard-light/dedicatedCloud-dashboard-light.component.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import template from './dedicatedCloud-dashboard-light.html'; | ||
|
||
export default { | ||
bindings: { | ||
currentDrp: '<', | ||
currentUser: '<', | ||
goToVpnConfiguration: '<', | ||
pccType: '<', | ||
isLv1Lv2BannerAvailable: '<', | ||
productId: '<', | ||
currentService: '<', | ||
datacenterList: '<', | ||
deleteDrp: '<', | ||
disableVmwareOption: '<', | ||
drpGlobalStatus: '<', | ||
editDetails: '<', | ||
goToDrp: '<', | ||
goToDrpDatacenterSelection: '<', | ||
isDrpActionPossible: '<', | ||
onTerminate: '<', | ||
onMlSubscribe: '<', | ||
orderSecurityOption: '<', | ||
orderVmwareOption: '<', | ||
isMailingListSubscriptionAvailable: '<', | ||
setMessage: '<', | ||
onUpgradeVersion: '<', | ||
associateIpBlockLink: '<', | ||
onExecutionDateChange: '<', | ||
}, | ||
template, | ||
}; |
12 changes: 12 additions & 0 deletions
12
...client/app/components/dedicated-cloud/dashboard-light/dedicatedCloud-dashboard-light.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div data-ui-view> | ||
<div class="col-md-4"> | ||
<ovh-manager-pcc-dashboard-general-information | ||
data-current-service="$ctrl.currentService" | ||
data-edit-details="$ctrl.editDetails" | ||
data-on-upgrade-version="$ctrl.onUpgradeVersion" | ||
data-associate-ip-block-link="$ctrl.associateIpBlockLink" | ||
data-on-execution-date-change="$ctrl.onExecutionDateChange" | ||
data-tracking-prefix="$ctrl.trackingPrefix" | ||
></ovh-manager-pcc-dashboard-general-information> | ||
</div> | ||
</div> |
3 changes: 3 additions & 0 deletions
3
...client/app/components/dedicated-cloud/dashboard-light/dedicatedCloud-dashboard-light.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.oui-tile { | ||
min-height: 19.5rem !important; | ||
} |
12 changes: 12 additions & 0 deletions
12
...ges/manager/apps/dedicated/client/app/components/dedicated-cloud/dashboard-light/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import generalInformation from '../dashboard/tiles/general-information'; | ||
import component from './dedicatedCloud-dashboard-light.component'; | ||
import './dedicatedCloud-dashboard-light.scss'; | ||
|
||
const moduleName = 'ovhManagerPccDashboardLight'; | ||
|
||
angular | ||
.module(moduleName, [generalInformation]) | ||
.component('pccDashboardLight', component) | ||
.run(/* @ngTranslationsInject:json ./translations */); | ||
|
||
export default moduleName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 2 additions & 8 deletions
10
...lient/app/components/dedicated-cloud/vmware-cloud-director/migration-banner/template.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
<oui-message | ||
class="pt-2" | ||
data-type="warning" | ||
data-ng-if="$ctrl.migrationState.isEnabling" | ||
> | ||
<span | ||
data-translate="dedicatedCloud_managed_vcd_migration_pending_warning" | ||
></span> | ||
<oui-message class="pt-2" data-type="info" data-ng-if="$ctrl.migrationState"> | ||
<span data-translate="dedicatedCloud_managed_vcd_migrated"></span> | ||
</oui-message> |
2 changes: 1 addition & 1 deletion
2
...s/dedicated-cloud/vmware-cloud-director/migration-banner/translations/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"dedicatedCloud_managed_vcd_migration_pending_warning": "Attention migration en cours : les modifications de votre service ne seront pas prises en compte" | ||
"dedicatedCloud_managed_vcd_migrated": "Votre solution Hosted Private Cloud a été migrée vers VMware Cloud Director. Cette page vous permet de gérer vos blocs d'IP publiques (commande d'un nouveau bloc, réattribution d'un bloc existant vers un autre service) qui sont actuellement attachés à votre service Hosted Private Cloud et connectés à votre service VMware Cloud Director. Cette situation est temporaire et prendra fin lorsque vos blocs d'IP publiques auront été attachés automatiquement à votre service VMware Cloud Director." | ||
} |
10 changes: 10 additions & 0 deletions
10
...er/apps/dedicated/client/app/dedicatedCloud/dashboard-light/dedicatedCloudLight.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import angular from 'angular'; | ||
|
||
import dashboardLightModule from '../../components/dedicated-cloud/dashboard-light'; | ||
import routing from './dedicatedCloudLight.routing'; | ||
|
||
const moduleName = 'ovhManagerDedicatedCloudLightModule'; | ||
|
||
angular.module(moduleName, [dashboardLightModule]).config(routing); | ||
|
||
export default moduleName; |
22 changes: 22 additions & 0 deletions
22
...r/apps/dedicated/client/app/dedicatedCloud/dashboard-light/dedicatedCloudLight.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('app.dedicatedCloud.details.dashboard.light', { | ||
url: '/tag/migration-vcd', | ||
redirectTo: (transition) => { | ||
return transition | ||
.injector() | ||
.getAsync('dedicatedCloudMigrationState') | ||
.then((dedicatedCloudMigrationState) => { | ||
if (!dedicatedCloudMigrationState) { | ||
return 'app.dedicatedCloud.details.dashboard'; | ||
} | ||
|
||
return false; | ||
}); | ||
}, | ||
resolve: { | ||
breadcrumb: () => null, | ||
}, | ||
reloadOnSearch: false, | ||
component: 'pccDashboardLight', | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
.../apps/dedicated/client/app/managedBaremetal/dashboard-light/dedicatedCloudLight.module.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import angular from 'angular'; | ||
|
||
import dashboardLightModule from '../../components/dedicated-cloud/dashboard-light'; | ||
import routing from './dedicatedCloudLight.routing'; | ||
|
||
const moduleName = 'ovhManagerManagedBaremetalLightModule'; | ||
|
||
angular.module(moduleName, [dashboardLightModule]).config(routing); | ||
|
||
export default moduleName; |
22 changes: 22 additions & 0 deletions
22
...apps/dedicated/client/app/managedBaremetal/dashboard-light/dedicatedCloudLight.routing.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export default /* @ngInject */ ($stateProvider) => { | ||
$stateProvider.state('app.managedBaremetal.details.dashboard.light', { | ||
url: '/tag/migration-vcd', | ||
redirectTo: (transition) => { | ||
return transition | ||
.injector() | ||
.getAsync('dedicatedCloudMigrationState') | ||
.then((dedicatedCloudMigrationState) => { | ||
if (!dedicatedCloudMigrationState) { | ||
return 'app.managedBaremetal.details.dashboard'; | ||
} | ||
|
||
return false; | ||
}); | ||
}, | ||
resolve: { | ||
breadcrumb: () => null, | ||
}, | ||
reloadOnSearch: false, | ||
component: 'pccDashboardLight', | ||
}); | ||
}; |
Oops, something went wrong.