Skip to content
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

fix(alerts): after dismissing alert are not removing from DOM #3608 #3622

Merged

Conversation

IraErshova
Copy link
Contributor

@IraErshova IraErshova commented Feb 1, 2018

Fix removing alert from DOM after its dismissing

Close #3608

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated demos.

@codecov
Copy link

codecov bot commented Feb 1, 2018

Codecov Report

❗ No coverage uploaded for pull request base (development@7201fcd). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##             development    #3622   +/-   ##
==============================================
  Coverage               ?   72.05%           
==============================================
  Files                  ?      252           
  Lines                  ?     8159           
  Branches               ?     1552           
==============================================
  Hits                   ?     5879           
  Misses                 ?     1858           
  Partials               ?      422
Impacted Files Coverage Δ
src/alert/alert.component.ts 89.65% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7201fcd...f1583a9. Read the comment docs.

<div *ngFor="let alert of alerts">
<alert [type]="alert.type" [dismissOnTimeout]="alert.timeout">{{ alert.msg }}</alert>
<alert [type]="alert.type" [dismissOnTimeout]="alert.timeout" (onClosed)="onClosed($event, alert)">{{ alert.msg }}</alert>

This comment was marked as off-topic.

@@ -1,5 +1,5 @@
<div *ngFor="let alert of alerts">
<alert [type]="alert.type" [dismissible]="dismissible">{{ alert.msg }}</alert>
<alert [type]="alert.type" [dismissible]="dismissible" (onClosed)="onClosed($event, alert)">{{ alert.msg }}</alert>

This comment was marked as off-topic.

name: 'Arizona',
region: 'West'
},
{ id: 3, name: 'Arizona', region: 'West' },

This comment was marked as off-topic.

IlyaSurmay
IlyaSurmay previously approved these changes Feb 8, 2018
@YevheniiaMazur
Copy link

Tested, looks good

@@ -14,4 +18,8 @@ export class DemoAlertTimeoutComponent {
timeout: 5000
});
}

onClosed(dismissedAlert: any): void {

This comment was marked as off-topic.

Output
} from '@angular/core';
import { AlertConfig } from './alert.config';
import { OnChange } from '../utils/decorators';
import { OnChange } from '../utils';

This comment was marked as off-topic.

This comment was marked as off-topic.

@valorkin valorkin merged commit 479778a into valor-software:development Feb 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants