cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud MyInbox footer customization

Shilpakrishna
Participant
0 Kudos
532

Hello,

How do I hide the "Show Log" button in SAP Cloud MyInbox? I want to make the "Show Log" button visible for few tasks and not for few.

The below line of code works for custom actions but not for "Claim" and "Show Log" .

startupParameters.inboxAPI.removeAction("Claim");

Thanks,

Shilpa

View Entire Topic
smarchesini
Active Contributor
0 Kudos

I solved like this and it's working (hidding the Claim button):

onAfterRendering() {
        var hideButtonWithClaimText = function () {
          var button = $("button:contains('Claim')");

          if (button.length > 0) {
            button.hide();
          } else {
            // If the button is not found, check again after a short delay
            setTimeout(hideButtonWithClaimText, 100); // 100ms delay
          }
        }

        // Start the process by calling the function
        hideButtonWithClaimText();
      }

Not soo elegant but it's working fine