From c4b5f67361c2d218a4844a2f24b3332ad66d7381 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Tue, 7 Mar 2023 12:38:24 +0100 Subject: [PATCH] fixed mime type and removed delete button on ccpimage input --- ccp/js/inputwidgeteditorcontroller.js | 10 +++++++--- ccp/js/methodeditorcontroller2.js | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ccp/js/inputwidgeteditorcontroller.js b/ccp/js/inputwidgeteditorcontroller.js index 227b91c..0447908 100644 --- a/ccp/js/inputwidgeteditorcontroller.js +++ b/ccp/js/inputwidgeteditorcontroller.js @@ -52,6 +52,12 @@ class CCPInputWidgetEditorController extends HTMLElement{ } } + renderDeleteButton(){ + + } + render(input, i, reopen){ this.#index = i this.#input = input @@ -60,9 +66,7 @@ class CCPInputWidgetEditorController extends HTMLElement{
- + ${ input.id !== 'ccpimage' ? this.renderDeleteButton()}
diff --git a/ccp/js/methodeditorcontroller2.js b/ccp/js/methodeditorcontroller2.js index ecb8b72..e2b8fb6 100644 --- a/ccp/js/methodeditorcontroller2.js +++ b/ccp/js/methodeditorcontroller2.js @@ -248,7 +248,7 @@ class CCPMethodEditorController extends HTMLElement{ this.#current.metadata = [] this.#tmp_inputs = [ { - id : "runtime", + id : "ccpimage", title : "Runtime", description : "The image of the runtime to use for method execution. This depends on the infrastructure specific protocol for interacting with registries.", minOccurs : 1, @@ -256,6 +256,7 @@ class CCPMethodEditorController extends HTMLElement{ schema : { type : "string", format : "url", + contentMediaType : "text/plain" default : "", readonly : true, }