diff --git a/src/app/services/plugin.service.ts b/src/app/services/plugin.service.ts index 11b0c857..41fa4ef6 100644 --- a/src/app/services/plugin.service.ts +++ b/src/app/services/plugin.service.ts @@ -49,8 +49,4 @@ export class PluginService { } return this.availablePlugins; } - - loadPlugins(files: File[]) { - return this._crud.loadPlugins(files); - } } diff --git a/src/app/views/forms/form-generator/file-uploader/file-uploader.component.ts b/src/app/views/forms/form-generator/file-uploader/file-uploader.component.ts index 58256104..ebbbba4b 100644 --- a/src/app/views/forms/form-generator/file-uploader/file-uploader.component.ts +++ b/src/app/views/forms/form-generator/file-uploader/file-uploader.component.ts @@ -28,23 +28,6 @@ export class FileUploaderComponent implements OnInit { this.files = Array.from((event.target as HTMLInputElement).files); } - loadPlugins() { - this.isLoading = true; - this.uploadProgress = 0; - this._plugin.loadPlugins(this.files).subscribe({ - next: res => { - this.files = null; - this.isLoading = false; - this.loadPage(); - }, error: err => { - console.log(err); - this._toast.error(err.message); - this.isLoading = false; - } - }); - } - - removeFile(file : File diff --git a/src/app/views/forms/form-generator/form-generator.component.html b/src/app/views/forms/form-generator/form-generator.component.html index 5009ec9b..594ba83e 100644 --- a/src/app/views/forms/form-generator/form-generator.component.html +++ b/src/app/views/forms/form-generator/form-generator.component.html @@ -108,11 +108,6 @@

{{ formObj.title }}

- -
- -
-
@@ -148,18 +143,6 @@

{{ formObj.title }}

{{ el.url ? el.url : "polypheny.com" }} - - diff --git a/src/app/views/forms/form-generator/form-generator.component.ts b/src/app/views/forms/form-generator/form-generator.component.ts index fdb8203b..147e87f6 100644 --- a/src/app/views/forms/form-generator/form-generator.component.ts +++ b/src/app/views/forms/form-generator/form-generator.component.ts @@ -368,23 +368,6 @@ export class FormGeneratorComponent implements OnInit, OnDestroy { this.markElementReset(key, el); } - deactivatePlugin(el: any, key: string) { - el.status = PluginStatus.LOADED; - this.markElementReset(key, el); - this.forceSubmit(() => el.status = PluginStatus.ACTIVE); - } - - activatePlugin(el: any, key: string) { - el.status = PluginStatus.ACTIVE; - this.markElementReset(key, el); - this.forceSubmit(() => el.status = PluginStatus.LOADED); - - } - - forceSubmit(func: () => {}) { - this.onSubmit(this.form, null, func); - } - comparePlugins(a: any, b: any) { if (a.isSystemComponent) { return -1;