From 9c2dbac479216ee1154b35bafda8173b120885a4 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 9 Feb 2022 00:49:44 +0200 Subject: [PATCH] fix(services): show task actions EE-2505 --- app/docker/__module.js | 3 ++- .../components/container-quick-actions/index.ts | 11 ++++------- app/docker/components/index.ts | 7 +++++++ 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 app/docker/components/index.ts diff --git a/app/docker/__module.js b/app/docker/__module.js index 771806f8e..c0c539aad 100644 --- a/app/docker/__module.js +++ b/app/docker/__module.js @@ -1,8 +1,9 @@ import angular from 'angular'; import containersModule from './containers'; +import { componentsModule } from './components'; -angular.module('portainer.docker', ['portainer.app', containersModule]).config([ +angular.module('portainer.docker', ['portainer.app', containersModule, componentsModule]).config([ '$stateRegistryProvider', function ($stateRegistryProvider) { 'use strict'; diff --git a/app/docker/components/container-quick-actions/index.ts b/app/docker/components/container-quick-actions/index.ts index 2be542a63..fe0329cc3 100644 --- a/app/docker/components/container-quick-actions/index.ts +++ b/app/docker/components/container-quick-actions/index.ts @@ -1,7 +1,4 @@ -import angular from 'angular'; - -import { ContainerQuickActionsAngular } from './ContainerQuickActions'; - -angular - .module('portainer.docker') - .component('containerQuickActions', ContainerQuickActionsAngular); +export { + ContainerQuickActions, + ContainerQuickActionsAngular, +} from './ContainerQuickActions'; diff --git a/app/docker/components/index.ts b/app/docker/components/index.ts new file mode 100644 index 000000000..14fdcbea8 --- /dev/null +++ b/app/docker/components/index.ts @@ -0,0 +1,7 @@ +import angular from 'angular'; + +import { ContainerQuickActionsAngular } from './container-quick-actions'; + +export const componentsModule = angular + .module('portainer.docker.components', []) + .component('containerQuickActions', ContainerQuickActionsAngular).name;