mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-10 15:20:56 +00:00
0ac6ea6f1e
(white space only change)
15 lines
535 B
JavaScript
15 lines
535 B
JavaScript
angular.module('syncthing.core')
|
|
.directive('notification', function () {
|
|
return {
|
|
restrict: 'E',
|
|
scope: {},
|
|
transclude: true,
|
|
template: '<div class="row" ng-if="visible()"><div class="col-md-12" ng-transclude></div></div>',
|
|
link: function (scope, elm, attrs) {
|
|
scope.visible = function () {
|
|
return scope.$parent.config.options.unackedNotificationIDs.indexOf(attrs.id) > -1;
|
|
};
|
|
}
|
|
};
|
|
});
|