alexcrack / alexcrack/angular-ui-notification

Using the options.type doesn't work

Aberta
#80 1 comentário 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
529
Forks
164
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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 || '';
```

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.