forked from openshift/origin-web-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelpDropdown.js
43 lines (40 loc) · 1.24 KB
/
helpDropdown.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
'use strict';
angular.module('openshiftConsole')
// prepopulating extension points with some of our own data
// (ensures a single interface for extending the UI)
.run(function(extensionRegistry) {
extensionRegistry
.add('nav-help-dropdown', function() {
var options = [];
options.push(
{
type: 'dom',
node: '<li><a target="_blank" href="{{\'default\' | helpLink}}">Documentation</a></li>'
}
);
if (!_.get(window, 'OPENSHIFT_CONSTANTS.DISABLE_SERVICE_CATALOG_LANDING_PAGE')) {
var tourConfig = _.get(window, 'OPENSHIFT_CONSTANTS.GUIDED_TOURS.landing_page_tour');
if (tourConfig && tourConfig.enabled && tourConfig.steps) {
options.push(
{
type: 'dom',
node: '<li><a href="./?startTour=true">Tour Home Page</a></li>'
}
);
}
}
options.push(
{
type: 'dom',
node: '<li><a href="command-line">Command Line Tools</a></li>'
}
);
options.push(
{
type: 'dom',
node: '<li><a href="about">About</a></li>'
}
);
return options;
})
});