Question
How to hide/disable quick action "Assign" for Group tasks on Notification panel
15:41 Mar 06, 2023
Hello Community,
I need to hide (or disable) the action "Assign" for Group tasks on Notification panel.
Could you please advise on how it could be achieved ?
Thank you,
Anna
Like
2 comments
16:31 Mar 06, 2023
Hi Anna,
You need to override method _initOwnerActionsButtonMenu in the schema ProcessDashboardSchema:
define("ProcessDashboardSchema",[ "ProcessDashboardSchemaResources", "ConfigurationConstants", "RemindingsUtilities", "FormatUtils", "DesktopPopupNotification", "BaseFiltersGenerateModule", "DcmElementSchemaManager", "EmptyGridMessageConfigBuilder", "QuickFilterModuleV2", "css!ProcessDashboardModule" ], function(resources, ConfigurationConstants, RemindingsUtilities, FormatUtils, DesktopNotification, BaseFiltersGenerateModule) { return { entitySchemaName: "SysProcessElementToDo", messages: {}, attributes: {}, properties: {}, methods: { _initOwnerActionsButtonMenu: function(callback, scope) { const menu = this.get("OwnerActionsButtonMenu"); const collection = Ext.create("Terrasoft.BaseViewModelCollection"); collection.addItem(this.getButtonMenuItem({ "Caption": resources.localizableStrings.OwnerActionExecuteCaption, "Click": {"bindTo": "_ownerActionAssignToMe"}, "Tag": true })); collection.addItem(this.getButtonMenuItem({ "Caption": resources.localizableStrings.OwnerActionAssignToMeCaption, "Click": {"bindTo": "_ownerActionAssignToMe"}, "Tag": false })); menu.clear(); menu.loadAll(collection); Ext.callback(callback, scope); }, }, diff: [] } });
Show all comments