From fd2b00bf3b1c001b6eb9525f8a89bb503dce6c7a Mon Sep 17 00:00:00 2001 From: Malcolm Lockyer Date: Mon, 11 Nov 2024 12:06:56 +1300 Subject: [PATCH] fix(ui): kubernetes create from file page - fix template load failed message style [R8S-68] (#95) --- app/kubernetes/views/deploy/deploy.html | 14 +------------- .../custom-template-selector.html | 9 +++++++++ .../components/custom-template-selector/index.js | 1 + 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/app/kubernetes/views/deploy/deploy.html b/app/kubernetes/views/deploy/deploy.html index 5b14b3585..36f21126f 100644 --- a/app/kubernetes/views/deploy/deploy.html +++ b/app/kubernetes/views/deploy/deploy.html @@ -132,22 +132,10 @@ definitions="ctrl.state.template.Variables" value="ctrl.formValues.Variables" on-change="(ctrl.onChangeTemplateVariables)" + is-load-failed="ctrl.state.BuildMethod === ctrl.BuildMethods.CUSTOM_TEMPLATE && ctrl.state.templateId && ctrl.state.templateLoadFailed" > - - -

- Custom template could not be loaded, please - click here for configuration.

-

- Custom template could not be loaded, please contact your - administrator.

-
-
-
+ +

+ Custom template could not be loaded, please + click here for configuration.

+

+ Custom template could not be loaded, please contact your administrator.

+
No custom templates are available. Head over to the custom template view to create one. diff --git a/app/portainer/components/custom-template-selector/index.js b/app/portainer/components/custom-template-selector/index.js index 6e677618d..9b5e5c05d 100644 --- a/app/portainer/components/custom-template-selector/index.js +++ b/app/portainer/components/custom-template-selector/index.js @@ -7,6 +7,7 @@ export const customTemplateSelector = { bindings: { newTemplatePath: '@', stackType: '<', + isLoadFailed: '<', value: '<', onChange: '<',