halfmoonui / halfmoon

Halfmoon is a highly customizable, drop-in Bootstrap replacement. It comes with three built-in core themes, with dark mode support for all themes and components.
https://www.gethalfmoon.com
MIT License
3.01k stars 118 forks source link

3rd party alerts not working #115

Open shapedthought opened 3 years ago

shapedthought commented 3 years ago

Hi there,

I'm trying out halfmoon in Angular, good so far but I'm hit a problem with it comes to alerts. SweetAlert2, Angular-Notifier, primeng don't work for some reason, They don't error but none of them show anything when triggered.

I've even brought in the halfmoon sticky alerts, but they fail as they directly update the DOM which Angular doesn't like. ERROR TypeError: Cannot read property 'insertBefore' of undefined at Object.initStickyAlert (halfmoon-module.js:225) at LoginComponent.halfmoonAlert (login.component.ts:37) at SafeSubscriber._next (login.component.ts:70) at SafeSubscriber.__tryOrUnsub (Subscriber.js:183) at SafeSubscriber.next (Subscriber.js:122) at Subscriber._next (Subscriber.js:72) at Subscriber.next (Subscriber.js:49) at CatchSubscriber._next (Subscriber.js:72) at CatchSubscriber.next (Subscriber.js:49) at MapSubscriber._next (map.js:35)

Do you have any recommendations on how to get any sort of alert working with Angular?

Thanks

ksenginew commented 2 years ago

Hi @shapedthought It looks like halfmoon is not in active development. I had created an active clone named Fullmoon. Please refer to https://github.com/halfmoonui/halfmoon/issues/116#issuecomment-1013674632 for more info.

You can report any issues here. You can help us to develop angular falvour of Fullmoon.