-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dedicated): add iplb delete option for us #14243
base: master
Are you sure you want to change the base?
Conversation
"iplb_terminate_service_success": "Votre demande de suppression de votre service a été prise en compte. Un e-mail contenant la procédure vous a été envoyé.", | ||
"iplb_terminate_service_error": "Une erreur est survenue lors de la demande de suppression de votre service. {{error}}", | ||
"iplb_terminate_service_confirm_input": "Entrez \"TERMINATE\" dans le champ ci-dessous pour confirmer", | ||
"iplb_terminate_service_terminate_valide": "Valider", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"iplb_terminate_service_terminate_valide": "Valider", | |
"iplb_terminate_service_terminate_valid": "Valider", |
}, | ||
redirectTo: (transition) => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this redirection for empty case ?
this.$http = $http; | ||
this.Alerter = Alerter; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$onInit() { | |
this.isDeleting = false; | |
} |
|
||
$onInit() { | ||
super.$onInit(); | ||
console.log(this.Alerter); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log(this.Alerter); |
<oui-action-menu | ||
data-compact | ||
data-placement="end" | ||
data-ng-if="$ctrl.isDeleteOptionsAvailable" | ||
> | ||
<oui-action-menu-item data-on-click="$ctrl.gotoService($row)"> | ||
<span data-translate="iplb_listing_action_detail"></span> | ||
</oui-action-menu-item> | ||
<oui-action-menu-item data-on-click="$ctrl.deleteIplb($row)"> | ||
<span data-translate="iplb_listing_action_delete"></span> | ||
</oui-action-menu-item> | ||
</oui-action-menu> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<oui-action-menu | |
data-compact | |
data-placement="end" | |
data-ng-if="$ctrl.isDeleteOptionsAvailable" | |
> | |
<oui-action-menu-item data-on-click="$ctrl.gotoService($row)"> | |
<span data-translate="iplb_listing_action_detail"></span> | |
</oui-action-menu-item> | |
<oui-action-menu-item data-on-click="$ctrl.deleteIplb($row)"> | |
<span data-translate="iplb_listing_action_delete"></span> | |
</oui-action-menu-item> | |
</oui-action-menu> | |
<oui-action-menu | |
data-compact | |
data-placement="end" | |
> | |
<oui-action-menu-item data-on-click="$ctrl.gotoService($row)"> | |
<span data-translate="iplb_listing_action_detail"></span> | |
</oui-action-menu-item> | |
<oui-action-menu-item data-ng-if="$ctrl.isDeleteOptionsAvailable" data-on-click="$ctrl.deleteIplb($row)"> | |
<span data-translate="iplb_listing_action_delete"></span> | |
</oui-action-menu-item> | |
</oui-action-menu> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with that request, you can keep action menu for the detail action.
data-heading="{{:: 'iplb_terminate_service' | translate}}" | ||
data-primary-action="$ctrl.terminate()" | ||
data-primary-disabled="!$ctrl.terminateConfirmation" | ||
data-primary-label="{{:: 'iplb_terminate_service_terminate_valide' | translate }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-primary-label="{{:: 'iplb_terminate_service_terminate_valide' | translate }}" | |
data-primary-label="{{:: 'iplb_terminate_service_terminate_valid' | translate }}" |
terminate() { | ||
this.$http | ||
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`) | ||
.then(() => { | ||
this.Alerter.success( | ||
this.$translate.instant('iplb_terminate_service_success'), | ||
); | ||
}) | ||
.catch((err) => { | ||
this.Alerter.error( | ||
this.$translate.instant('iplb_terminate_service_error', { | ||
t0: err.data ? err.data.message : err.message, | ||
}), | ||
this.alertId, | ||
); | ||
}); | ||
this.$uibModalInstance.close(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
terminate() { | |
this.$http | |
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`) | |
.then(() => { | |
this.Alerter.success( | |
this.$translate.instant('iplb_terminate_service_success'), | |
); | |
}) | |
.catch((err) => { | |
this.Alerter.error( | |
this.$translate.instant('iplb_terminate_service_error', { | |
t0: err.data ? err.data.message : err.message, | |
}), | |
this.alertId, | |
); | |
}); | |
this.$uibModalInstance.close(); | |
} | |
terminate() { | |
this.$http | |
.post(`/ipLoadbalancing/${this.service.serviceName}/terminate`) | |
.then(() => { | |
this.Alerter.success( | |
this.$translate.instant('iplb_terminate_service_success'), | |
); | |
this.$uibModalInstance.close(); | |
}) | |
.catch((err) => { | |
this.Alerter.error( | |
this.$translate.instant('iplb_terminate_service_error', { | |
t0: err.data ? err.data.message : err.message, | |
}), | |
this.alertId, | |
); | |
this.$uibModalInstance.dismiss(); | |
}); | |
} |
$onInit() { | ||
super.$onInit(); | ||
console.log(this.Alerter); | ||
this.Alerter.error('test test test', 'InfoErrors'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.Alerter.error('test test test', 'InfoErrors'); |
this.$state = $state; | ||
this.ouiDatagridService = ouiDatagridService; | ||
this.CucControllerHelper = CucControllerHelper; | ||
this.Alerter = Alerter; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.Alerter = Alerter; |
|
||
export default class iplbListingCtrl extends ListLayoutHelper.ListLayoutCtrl { | ||
/* @ngInject */ | ||
constructor($state, $q, Alerter, ouiDatagridService, CucControllerHelper) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constructor($state, $q, Alerter, ouiDatagridService, CucControllerHelper) { | |
constructor($state, $q, ouiDatagridService, CucControllerHelper) { |
export const DEFAULT_NUMBER_OF_COLUMNS = 4; | ||
|
||
export const STRING_COLUMN_OPTIONS = [ | ||
'contains', | ||
'startsWith', | ||
'endsWith', | ||
'is', | ||
'isNot', | ||
]; | ||
|
||
export const NUMBER_COLUMN_OPTIONS = ['is']; | ||
export const LB_DELETE_FEATURE = 'ip-load-balancer:delete'; | ||
|
||
export default { | ||
DEFAULT_NUMBER_OF_COLUMNS, | ||
NUMBER_COLUMN_OPTIONS, | ||
STRING_COLUMN_OPTIONS, | ||
LB_DELETE_FEATURE, | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To remove
export const DEFAULT_NUMBER_OF_COLUMNS = 4; | |
export const STRING_COLUMN_OPTIONS = [ | |
'contains', | |
'startsWith', | |
'endsWith', | |
'is', | |
'isNot', | |
]; | |
export const NUMBER_COLUMN_OPTIONS = ['is']; | |
export const LB_DELETE_FEATURE = 'ip-load-balancer:delete'; | |
export default { | |
DEFAULT_NUMBER_OF_COLUMNS, | |
NUMBER_COLUMN_OPTIONS, | |
STRING_COLUMN_OPTIONS, | |
LB_DELETE_FEATURE, | |
}; |
ref: MANAGER-15666 Signed-off-by: soufien mhelhali <[email protected]>
5c82114
to
daa5403
Compare
Quality Gate passedIssues Measures |
This Pull Request is stale due to inactivity since 30 days. If no activity happens for 15 more days from now, it will be closed. |
master
/release/**
/develop
Description
Related