Question

How to hide/disable quick action "Assign" for Group tasks on Notification panel

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 0

Like

2 comments

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: []
		}
	});

 

Dmytro Vovchenko, Thanks a lot!

Show all comments