alexcrack / alexcrack/angular-ui-notification

Using the options.type doesn't work

Đang mở
#80 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
529
Fork
164
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

In the readme, it mentions that I can set the type of the notifications in the options using the type property

``` JavaScript
{ title: "Session Expired!", message: "Please login in again.", type: "warning" };
```

But this will always show up as a primary notification. Is this the expected behavior? After some debugging, I was unsure if this [line](https://github.com/alexcrack/angular-ui-notification/blob/e617de2eb11b43f3cf388aea3ae32668c94cf097/src/angular-ui-notification.js#L47) should be change to

``` Javascript
args.type = t || args.type || '';
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.