Skip to content

Commit 6b5494d

Browse files
authored
Merge pull request #650 from amarie401/emptystate-filter
fix(pfEmptyState): missing urlAction in pfEmptyState config
2 parents 5ab4738 + 23e3779 commit 6b5494d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/views/empty-state.component.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,22 @@
4848
<file name="script.js">
4949
angular.module('patternfly.views').controller('ViewCtrl', ['$scope',
5050
function ($scope) {
51+
5152
$scope.eventText = '';
5253
54+
var performEmptyStateAction = function () {
55+
$scope.eventText += 'Empty State Action Executed \r\n';
56+
};
57+
5358
$scope.config = {
5459
icon: 'pficon-add-circle-o',
5560
title: 'Empty State Title',
5661
info: "This is the Empty State component. The goal of a empty state pattern is to provide a good first impression that helps users to achieve their goals. It should be used when a view is empty because no objects exists and you want to guide the user to perform specific actions.",
5762
helpLink: {
5863
label: 'For more information please see',
5964
urlLabel: 'pfExample',
60-
url : '#/api/patternfly.views.component:pfEmptyState'
65+
url: '#/api/patternfly.views.component:pfEmptyState',
66+
urlAction: performEmptyStateAction
6167
}
6268
};
6369

0 commit comments

Comments
 (0)