From 13758cf841eda6ab5c2c7b7ffa204ee42f298644 Mon Sep 17 00:00:00 2001 From: Rachitha Ramappa Date: Fri, 27 Mar 2020 10:55:45 +0530 Subject: Menu mandatory field, add/update fixes Change-Id: I238d9ba1ae20210bd305461ebc2fd6180ee9940d Issue-ID: PORTAL-864 Signed-off-by: rachitha.ramappa@att.com --- .../src/app/pages/admin/menus/menus.component.ts | 57 ++++++++++++++++------ 1 file changed, 42 insertions(+), 15 deletions(-) (limited to 'ecomp-sdk/epsdk-app-overlay') diff --git a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.ts b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.ts index c327c79a..5d996964 100644 --- a/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.ts +++ b/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/pages/admin/menus/menus.component.ts @@ -111,27 +111,54 @@ export class MenusComponent implements OnInit { }); //rdp table data - this.columns.push(new Column("id", "Menu ID", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("label", "Label", ColumnTypes.TEXT, true, null)); - this.columns.push(new Column("parentId", "ParentId", ColumnTypes.DROPDOWN, false, this.parentList)); - this.columns.push(new Column("sortOrder", "Sort Order", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("action", "Action", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("functionCd", "Function", ColumnTypes.DROPDOWN, false, this.functionCDselectData)); - this.columns.push(new Column("active", "Active", ColumnTypes.DROPDOWN, false, this.activeStatusOptions)); - this.columns.push(new Column("servlet", "Servlet", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("queryString", " Query String", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("externalUrl", "External URL", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("target", "Target", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("menuSetCode", "Menu Set Code", ColumnTypes.TEXT, false, null)); - this.columns.push(new Column("separator", "Separator", ColumnTypes.DROPDOWN, false, this.separatorStatusOptions)); - this.columns.push(new Column("imageSrc", "Image Source", ColumnTypes.TEXT, false, null)); + let menuIdColumn = new Column("id", "Menu ID", ColumnTypes.TEXT, true, null); + menuIdColumn.isColumnDisabled = true; + this.columns.push(menuIdColumn); + + let label = new Column("label", "Label", ColumnTypes.TEXT, true, null); + label.setIsColumnMandatory = true; + this.columns.push(label); + + let parent = new Column("parentId", "ParentId", ColumnTypes.DROPDOWN, true, this.parentList); + parent.setIsColumnMandatory = true; + this.columns.push(parent); + + let sortOrder = new Column("sortOrder", "Sort Order", ColumnTypes.TEXT, true, null); + sortOrder.setIsColumnMandatory = true; + this.columns.push(sortOrder); + + let action = new Column("action", "Action", ColumnTypes.TEXT, true, null); + action.setIsColumnMandatory = true; + this.columns.push(action); + + let functionCd = new Column("functionCd", "Function", ColumnTypes.DROPDOWN, true, this.functionCDselectData); + functionCd.setIsColumnMandatory = true; + this.columns.push(functionCd); + + let active = new Column("active", "Active", ColumnTypes.DROPDOWN, true, this.activeStatusOptions); + active.setIsColumnMandatory = true; + this.columns.push(active); + + this.columns.push(new Column("servlet", "Servlet", ColumnTypes.TEXT, true, null)); + this.columns.push(new Column("queryString", " Query String", ColumnTypes.TEXT, true, null)); + this.columns.push(new Column("externalUrl", "External URL", ColumnTypes.TEXT, true, null)); + this.columns.push(new Column("target", "Target", ColumnTypes.TEXT, true, null)); + + let menuSetCode = new Column("menuSetCode", "Menu Set Code", ColumnTypes.TEXT, false, null); + menuSetCode.setIsColumnMandatory = true; + this.columns.push(menuSetCode); + + let separator = new Column("separator", "Separator", ColumnTypes.DROPDOWN, false, this.separatorStatusOptions); + separator.setIsColumnMandatory = true; + this.columns.push(separator); + this.columns.push(new Column("imageSrc", "Image Source", ColumnTypes.TEXT, true, null)); this.settings = new DataTableSettings() this.settings.columns = this.columns; this.settings.isPaginationEnabled = true; this.settings.paginationsSize = "5"; this.settings.isReadOnly = false; - this.settings.isTableSearchEnabled = false; + this.settings.isTableSearchEnabled = true; this.settings.applicationService = this.menuService; this.showSpinner = false; -- cgit 1.2.3-korg