Skip to content

Commit

Permalink
Merge pull request #6 from thediaval/patch-1
Browse files Browse the repository at this point in the history
doc: change imported namespace
  • Loading branch information
mehmet-erim committed Feb 24, 2020
2 parents 1e3a11e + 55435c1 commit 2b5c879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions en/tutorials/book-store/part-2.md
Expand Up @@ -1392,15 +1392,15 @@ In the `book-list.component.ts` add a delete method :
```js
import { GetBooks, CreateUpdateBook, DeleteBook } from '../../store/actions'; //<== added DeleteBook ==>

import { ConfirmationService, Toaster } from '@abp/ng.theme.shared'; //<== added Toaster ==>
import { ConfirmationService, Confirmation } from '@abp/ng.theme.shared'; //<== added Confirmation ==>

//...

delete(id: string, name: string) {
this.confirmationService
.warn('::AreYouSureToDelete', 'AbpAccount::AreYouSure')
.subscribe(status => {
if (status === Toaster.Status.confirm) {
if (status === Confirmation.Status.confirm) {
this.store.dispatch(new DeleteBook(id)).subscribe(() => this.get());
}
});
Expand Down

0 comments on commit 2b5c879

Please sign in to comment.