Created
June 21, 2019 15:41
-
-
Save confraria/8772034c869c45093aa7f6e736d5eb12 to your computer and use it in GitHub Desktop.
Add a a new link to rightdrawer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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