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', [
.component('annotationShareDialog', require('./directive/annotation-share-dialog'))
.component('annotationThread', require('./directive/annotation-thread'))
.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'))
.directive('excerpt', require('./directive/excerpt').directive)
.directive('formInput', require('./directive/form-input'))
.directive('formValidate', require('./directive/form-validate'))
.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('hOnTouch', require('./directive/h-on-touch'))
.directive('hTooltip', require('./directive/h-tooltip'))
......
'use strict';
module.exports = function () {
return {
bindToController: true,
module.exports = {
controllerAs: 'vm',
restrict: 'E',
template: require('../templates/help_link.html'),
controller: function () {},
scope: {
......@@ -15,5 +12,4 @@ module.exports = function () {
auth: '<',
dateTime: '<',
},
};
};
......@@ -6,9 +6,7 @@
* @description Displays product version and environment info
*/
// @ngInject
module.exports = function () {
return {
bindToController: true,
module.exports = {
controllerAs: 'vm',
// @ngInject
controller: function ($scope, $window, annotationUI, serviceUrl) {
......@@ -30,11 +28,9 @@ module.exports = function () {
}.bind(this)
);
},
restrict: 'E',
template: require('../templates/help_panel.html'),
scope: {
bindings: {
auth: '<',
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