Skip to content

Instantly share code, notes, and snippets.

@confraria
Created June 21, 2019 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save confraria/8772034c869c45093aa7f6e736d5eb12 to your computer and use it in GitHub Desktop.
Save confraria/8772034c869c45093aa7f6e736d5eb12 to your computer and use it in GitHub Desktop.
Add a a new link to rightdrawer
angular.module('c8y.ui').decorator('c8yDocs', ($delegate) => {
'ngInject';
const listFn = $delegate.list.bind($delegate);
$delegate.list = function() {
return listFn().then(links => {
links.push({
{
icon: 'c8y-book', // choose from http://styleguide.cumulocity.com/icons/fontawesome or http://styleguide.cumulocity.com/icons/cumulocity
label: 'My link'
url: 'http://example.com'
},
});
return links;
});
}
return $delegate;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment