Commit 85217178 authored by Robert Knight's avatar Robert Knight

Convert <help-link> and <help-panel> to components

parent f7f10dfd
...@@ -140,14 +140,14 @@ module.exports = angular.module('h', [ ...@@ -140,14 +140,14 @@ module.exports = angular.module('h', [
.component('annotationShareDialog', require('./directive/annotation-share-dialog')) .component('annotationShareDialog', require('./directive/annotation-share-dialog'))
.component('annotationThread', require('./directive/annotation-thread')) .component('annotationThread', require('./directive/annotation-thread'))
.component('dropdownMenuBtn', require('./directive/dropdown-menu-btn')) .component('dropdownMenuBtn', require('./directive/dropdown-menu-btn'))
.component('helpLink', require('./directive/help-link'))
.component('helpPanel', require('./directive/help-panel'))
.component('publishAnnotationBtn', require('./directive/publish-annotation-btn')) .component('publishAnnotationBtn', require('./directive/publish-annotation-btn'))
.directive('excerpt', require('./directive/excerpt').directive) .directive('excerpt', require('./directive/excerpt').directive)
.directive('formInput', require('./directive/form-input')) .directive('formInput', require('./directive/form-input'))
.directive('formValidate', require('./directive/form-validate')) .directive('formValidate', require('./directive/form-validate'))
.directive('groupList', require('./directive/group-list').directive) .directive('groupList', require('./directive/group-list').directive)
.directive('helpLink', require('./directive/help-link'))
.directive('helpPanel', require('./directive/help-panel'))
.directive('hAutofocus', require('./directive/h-autofocus')) .directive('hAutofocus', require('./directive/h-autofocus'))
.directive('hOnTouch', require('./directive/h-on-touch')) .directive('hOnTouch', require('./directive/h-on-touch'))
.directive('hTooltip', require('./directive/h-tooltip')) .directive('hTooltip', require('./directive/h-tooltip'))
......
'use strict'; 'use strict';
module.exports = function () { module.exports = {
return {
bindToController: true,
controllerAs: 'vm', controllerAs: 'vm',
restrict: 'E',
template: require('../templates/help_link.html'), template: require('../templates/help_link.html'),
controller: function () {}, controller: function () {},
scope: { scope: {
...@@ -15,5 +12,4 @@ module.exports = function () { ...@@ -15,5 +12,4 @@ module.exports = function () {
auth: '<', auth: '<',
dateTime: '<', dateTime: '<',
}, },
};
}; };
...@@ -6,9 +6,7 @@ ...@@ -6,9 +6,7 @@
* @description Displays product version and environment info * @description Displays product version and environment info
*/ */
// @ngInject // @ngInject
module.exports = function () { module.exports = {
return {
bindToController: true,
controllerAs: 'vm', controllerAs: 'vm',
// @ngInject // @ngInject
controller: function ($scope, $window, annotationUI, serviceUrl) { controller: function ($scope, $window, annotationUI, serviceUrl) {
...@@ -30,11 +28,9 @@ module.exports = function () { ...@@ -30,11 +28,9 @@ module.exports = function () {
}.bind(this) }.bind(this)
); );
}, },
restrict: 'E',
template: require('../templates/help_panel.html'), template: require('../templates/help_panel.html'),
scope: { bindings: {
auth: '<', auth: '<',
onClose: '&', onClose: '&',
}, },
};
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment