|
2 | 2 | ````json |
3 | 3 | //[doc-params] |
4 | 4 | { |
5 | | - "UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG"], |
| 5 | + "UI": ["MVC","Blazor","BlazorServer","BlazorWebApp","NG", "MAUIBlazor"], |
6 | 6 | "DB": ["EF","Mongo"] |
7 | 7 | } |
8 | 8 | ```` |
@@ -389,11 +389,11 @@ Open the `/src/app/book/book.component.html` file and replace the edit and delet |
389 | 389 | * Added `*abpPermission="'BookStore.Books.Edit'"` that hides the edit action if the current user has no editing permission. |
390 | 390 | * Added `*abpPermission="'BookStore.Books.Delete'"` that hides the delete action if the current user has no delete permission. |
391 | 391 |
|
392 | | -{{else if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp"}} |
| 392 | +{{else if UI == "Blazor" || UI == "BlazorServer" || UI == "BlazorWebApp" || UI == "MAUIBlazor"}} |
393 | 393 |
|
394 | 394 | ### Authorize the Razor Component |
395 | 395 |
|
396 | | -Open the `/Pages/Books.razor` file in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and add an `Authorize` attribute just after the `@page` directive and the following namespace imports (`@using` lines), as shown below: |
| 396 | +Open the `/Pages/Books.razor` file in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor` {{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor` {{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project and add an `Authorize` attribute just after the `@page` directive and the following namespace imports (`@using` lines), as shown below: |
397 | 397 |
|
398 | 398 | ````html |
399 | 399 | @page "/books" |
@@ -481,7 +481,7 @@ You can run and test the permissions. Remove a book related permission from the |
481 | 481 |
|
482 | 482 | Even we have secured all the layers of the book management page, it is still visible on the main menu of the application. We should hide the menu item if the current user has no permission. |
483 | 483 |
|
484 | | -Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project, find the code block below: |
| 484 | +Open the `BookStoreMenuContributor` class in the {{ if UI == "BlazorServer" }}`Acme.BookStore.Blazor`{{ else if UI == "MAUIBlazor" }}`Acme.BookStore.MauiBlazor`{{ else }}`Acme.BookStore.Blazor.Client`{{ end }} project, find the code block below: |
485 | 485 |
|
486 | 486 | ````csharp |
487 | 487 | context.Menu.AddItem( |
|
0 commit comments