Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Enhance Alert widget to select type using wildcard match #17

Closed
klimov-paul opened this issue Apr 9, 2018 · 1 comment
Closed

Enhance Alert widget to select type using wildcard match #17

klimov-paul opened this issue Apr 9, 2018 · 1 comment
Assignees
Milestone

Comments

@klimov-paul
Copy link
Member

At the present state Alert widget determines alert type (CSS class) using direct match of flash name:

[
        'error' => 'alert-danger',
        'danger' => 'alert-danger',
        'success' => 'alert-success',
        'info' => 'alert-info',
        'warning' => 'alert-warning'
    ]

Thus in case flash message named in non standard way, e.g. 'emailSendSuccess' or 'configUpdateError', they do not pickup any alert style.

Behavior should be changed allowing configuration via wildcards, e.g. 'Success', '*Error' and so on.

@klimov-paul klimov-paul self-assigned this Apr 9, 2018
@klimov-paul klimov-paul added this to the 1.0.3 milestone Apr 9, 2018
@klimov-paul
Copy link
Member Author

Resolved by commit 951bb6d

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant