From 734dbdd6962598dbea5534f7a6955a20afc6b766 Mon Sep 17 00:00:00 2001 From: Daniel Peach Date: Thu, 12 Oct 2017 16:34:15 -0400 Subject: [PATCH] fix(kubernetes): fix template loading --- app/scripts/modules/kubernetes/v1/kubernetes.v1.module.js | 2 +- app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/modules/kubernetes/v1/kubernetes.v1.module.js b/app/scripts/modules/kubernetes/v1/kubernetes.v1.module.js index 71ba5e8a4b0..1925f2d80f4 100644 --- a/app/scripts/modules/kubernetes/v1/kubernetes.v1.module.js +++ b/app/scripts/modules/kubernetes/v1/kubernetes.v1.module.js @@ -11,7 +11,7 @@ import { KUBERNETES_HELP } from '../help/kubernetes.help'; import '../logo/kubernetes.logo.less'; // load all templates into the $templateCache -var templates = require.context('./', true, /\.html$/); +var templates = require.context('kubernetes', true, /\.html$/); templates.keys().forEach(function(key) { templates(key); }); diff --git a/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts b/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts index fe6aeb1379f..afcfafb5d64 100644 --- a/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts +++ b/app/scripts/modules/kubernetes/v2/kubernetes.v2.module.ts @@ -11,7 +11,7 @@ import { KUBERNETES_MANIFEST_ENTRY } from './manifest/wizard/manifestEntry.compo import { KUBERNETES_V2_SERVER_GROUP_TRANSFORMER } from './serverGroup/serverGroupTransformer.service'; // load all templates into the $templateCache -const templates = require.context('./', true, /\.html$/); +const templates = require.context('kubernetes', true, /\.html$/); templates.keys().forEach(function (key) { templates(key); });