Browse Source

Merge pull request #4749 from abpframework/fix/4712

Removed Invalid Use of AbpAccount Localization Resource in Tutorials
pull/4758/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
c6fffb76d3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      docs/en/Tutorials/Part-2.md
  2. 10
      docs/en/Tutorials/Part-3.md
  3. 2
      docs/en/Tutorials/Part-5.md

3
docs/en/Tutorials/Part-2.md

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

10
docs/en/Tutorials/Part-3.md

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

2
docs/en/Tutorials/Part-5.md

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

Loading…
Cancel
Save