Merge pull request #4749 from abpframework/fix/4712

Removed Invalid Use of AbpAccount Localization Resource in Tutorials
pull/4758/head
Mehmet Erim 5 years ago committed by GitHub
commit c6fffb76d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,6 +120,8 @@ Open the `en.json` (*the English translations*) file and change the content as b
"Menu:BookStore": "Book Store",
"Menu:Books": "Books",
"Actions": "Actions",
"Close": "Close",
"Delete": "Delete",
"Edit": "Edit",
"PublishDate": "Publish date",
"NewBook": "New book",
@ -127,6 +129,7 @@ Open the `en.json` (*the English translations*) file and change the content as b
"Type": "Type",
"Price": "Price",
"CreationTime": "Creation time",
"AreYouSure": "Are you sure?",
"AreYouSureToDelete": "Are you sure you want to delete this item?",
"Enum:BookType:0": "Undefined",
"Enum:BookType:1": "Adventure",

@ -716,7 +716,7 @@ Open `/src/app/book/book.component.html` and make the following changes:
<ng-template #abpFooter>
<button type="button" class="btn btn-secondary" #abpClose>
{%{{{ 'AbpAccount::Close' | abpLocalization }}}%}
{%{{{ '::Close' | abpLocalization }}}%}
</button>
</ng-template>
</abp-modal>
@ -856,13 +856,13 @@ Also replace `<ng-template #abpFooter> </ng-template>` with the following code p
````html
<ng-template #abpFooter>
<button type="button" class="btn btn-secondary" #abpClose>
{%{{{ 'AbpAccount::Close' | abpLocalization }}}%}
{%{{{ '::Close' | abpLocalization }}}%}
</button>
<!--added save button-->
<button class="btn btn-primary" (click)="save()" [disabled]="form.invalid">
<i class="fa fa-check mr-1"></i>
{%{{{ 'AbpAccount::Save' | abpLocalization }}}%}
{%{{{ '::Save' | abpLocalization }}}%}
</button>
</ng-template>
````
@ -1142,7 +1142,7 @@ constructor(
// Add a delete method
delete(id: string) {
this.confirmation.warn('::AreYouSureToDelete', 'AbpAccount::AreYouSure').subscribe((status) => {
this.confirmation.warn('::AreYouSureToDelete', '::AreYouSure').subscribe((status) => {
if (status === Confirmation.Status.confirm) {
this.bookService.deleteById(id).subscribe(() => this.list.get());
}
@ -1165,7 +1165,7 @@ Open `/src/app/book/book.component.html` and modify the `ngbDropdownMenu` to add
<div ngbDropdownMenu>
<!-- add the Delete button -->
<button ngbDropdownItem (click)="delete(row.id)">
{%{{{ 'AbpAccount::Delete' | abpLocalization }}}%}
{%{{{ '::Delete' | abpLocalization }}}%}
</button>
</div>
```

@ -390,7 +390,7 @@ Open the `/src/app/book/book.component.html` file and replace the edit and delet
<!-- Add the abpPermission directive -->
<button abpPermission="BookStore.Books.Delete" ngbDropdownItem (click)="delete(row.id)">
{%{{{ 'AbpAccount::Delete' | abpLocalization }}}%}
{%{{{ '::Delete' | abpLocalization }}}%}
</button>
````

Loading…
Cancel
Save