From: cyuamber Date: Tue, 18 Jun 2019 10:38:45 +0000 (+0800) Subject: Template interface Function modification X-Git-Tag: 2.0.0~111^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=f0585617a78b6891f7c2955c74019fe29c431726;p=dcaegen2%2Fservices.git Template interface Function modification Change-Id: I9fd0aa7949409ed10476b7a45ef4eb26d8259230 Issue-ID: DCAEGEN2-1625 Signed-off-by: cyuamber --- diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts index 5b69f6c8..9ce648b4 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/edit-template-modal/edit-template-modal.component.ts @@ -36,7 +36,6 @@ import {AlertComponent} from "../../../../core/alert/alert.component"; }) export class EditTemplateModalComponent implements OnInit { @Input() edittemplate: Template; - @Input() selectedLangs; templateInput: Template; templatetypedata: Array = []; topicname: Array = []; @@ -86,14 +85,6 @@ export class EditTemplateModalComponent implements OnInit { passBack() { if(this.templateInput.name == '' || this.templateInput.name == undefined){ - let tips = ""; - if (this.selectedLangs == "en-us") { - tips = "Name is required input." - } else if (this.selectedLangs == "zh-hans") { - tips = "名字是必填输入项。" - } else if (this.selectedLangs == "zh-hant") { - tips = "名字是必填輸入項。" - } return false; } this.edittemplate = this.templateInput; diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts index 640ab31e..fd6321bc 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/new-template-modal/new-template-modal.component.ts @@ -37,7 +37,6 @@ import {AlertComponent} from "../../../../core/alert/alert.component"; export class NewTemplateModalComponent implements OnInit { @Input() template: newTemplate; @Input() templatelist_length; - @Input() selectedLangs; templateInput: newTemplate templatetypedata: Array = []; topicname: Array = []; @@ -87,21 +86,12 @@ export class NewTemplateModalComponent implements OnInit { passBack() { if(this.templateInput.name == '' || this.templateInput.name == undefined){ - let tips = ""; - if (this.selectedLangs == "en-us") { - tips = "Name input is required." - } else if (this.selectedLangs == "zh-hans") { - tips = "名字输入项是必填项。" - } else if (this.selectedLangs == "zh-hant") { - tips = "名字輸入項是必填項。" - } return false; } this.template = this.templateInput; console.log(this.templateInput); this.template.designType = this.templatetype.nativeElement.value; this.template.topic = this.topic.nativeElement.value; - // this.template.id = this.templatelist_length+1; this.template.submitted = false; this.template.note = ""; console.log(this.template); diff --git a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html index aa1297a0..8222648f 100644 --- a/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html +++ b/components/datalake-handler/admin/src/src/app/dashboard-setting/template/template-list/template-list.component.html @@ -61,355 +61,19 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + {{ row.designType }} - + {{ row.topic }} -
@@ -417,7 +81,7 @@
- +