Commit 3fd9c787 by Daniel Lee Committed by GitHub

Merge pull request #11497 from grafana/dash-class-to-ts

migrated dash_class to ts
parents 51148709 714d555e
define([
'lodash',
'jquery',
'../core_module',
],
function (_, $, coreModule) {
'use strict';
import _ from 'lodash';
import coreModule from '../core_module';
coreModule.default.directive('dashClass', function() {
/** @ngInject */
export function dashClass() {
return {
link: function($scope, elem) {
$scope.onAppEvent('panel-fullscreen-enter', function() {
elem.toggleClass('panel-in-fullscreen', true);
});
......@@ -29,8 +24,8 @@ function (_, $, coreModule) {
elem.removeClass('dashboard-page--settings-open');
}
});
}
},
};
});
}
});
coreModule.directive('dashClass', dashClass);
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