mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 23:09:41 +02:00
fix(kube): updated kube terminology for configmaps/secrets [EE-4816] (#8770)
This commit is contained in:
parent
8fa49d47f4
commit
0743f26ab8
9 changed files with 38 additions and 25 deletions
|
@ -28,7 +28,7 @@ class KubernetesConfigurationsController {
|
|||
this.configurations = await this.KubernetesConfigurationService.get();
|
||||
KubernetesConfigurationHelper.setConfigurationsUsed(this.configurations, this.applications);
|
||||
} catch (err) {
|
||||
this.Notifications.error('Failure', err, 'Unable to retrieve configurations');
|
||||
this.Notifications.error('Failure', err, 'Unable to retrieve ConfigMaps & Secrets');
|
||||
} finally {
|
||||
this.state.configurationsLoading = false;
|
||||
}
|
||||
|
@ -43,11 +43,11 @@ class KubernetesConfigurationsController {
|
|||
for (const configuration of selectedItems) {
|
||||
try {
|
||||
await this.KubernetesConfigurationService.delete(configuration);
|
||||
this.Notifications.success('Configurations successfully removed', configuration.Name);
|
||||
this.Notifications.success('ConfigMaps/Secrets successfully removed', configuration.Name);
|
||||
const index = this.configurations.indexOf(configuration);
|
||||
this.configurations.splice(index, 1);
|
||||
} catch (err) {
|
||||
this.Notifications.error('Failure', err, 'Unable to remove configuration');
|
||||
this.Notifications.error('Failure', err, 'Unable to remove ConfigMaps/Secrets');
|
||||
} finally {
|
||||
--actionCount;
|
||||
if (actionCount === 0) {
|
||||
|
@ -58,7 +58,7 @@ class KubernetesConfigurationsController {
|
|||
}
|
||||
|
||||
removeAction(selectedItems) {
|
||||
confirmDelete('Do you want to remove the selected configuration(s)?').then((confirmed) => {
|
||||
confirmDelete('Do you want to remove the selected ConfigMap(s) & Secret(s)?').then((confirmed) => {
|
||||
if (confirmed) {
|
||||
return this.$async(this.removeActionAsync, selectedItems);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue