Skip to content

Convert notification module #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dgutride
Copy link
Member

Converts notification directives to component style, also includes making sure test and lint works correctly.

Notification service also converted to not use $rootScope any longer.

ctrl.updateShowClose();
}
});

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying out Object.defineProperty? Couldn't this also be handled by $onChanges?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd have to change showClose from @ to < to do that, I was trying to leave the interface the same so it can use {{ }}. I don't mind changing and documenting if you prefer @dtaylor113

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, I think it preferable to keep the API the same. -thanks!

$scope.types = ['success','info','danger', 'warning'];
$scope.type = $scope.types[0];
$scope.isPersistent = false;
$scope.notifications = $rootScope.notifications;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still being used? I don't see where.

@jeff-phillips-18
Copy link
Member

After making the notification persistent and then hitting the X to remove it, the demo becomes broken.

@dgutride dgutride force-pushed the convert-notification-module branch from 78d098e to d2aa17d Compare January 3, 2017 15:22
Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jeff-phillips-18 jeff-phillips-18 merged commit b74bfc6 into patternfly:branch-4.0-dev Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants