26
26
</FluentLabel >
27
27
28
28
<LoadingIndicator ShowSpinners =" this.IsBusy" ></LoadingIndicator >
29
- @if (this .VideoInfoId .HasValue )
30
- {
31
- <FluentAccordion >
32
- <FluentAccordionItem Expanded =" true" >
33
- <VideoActions context =" this.VideoInfoModel" OnVideoDeleted =" LoadDataAsync" ></VideoActions >
34
- </FluentAccordionItem >
35
- </FluentAccordion >
36
- }
37
29
38
- <div >
39
- <FluentButton Appearance =" Appearance.Accent" Type =" ButtonType.Button"
40
- OnClick =" OnCreateNewInfographicClickedAsync" >@Localizer ![CreateNewInfographicTextKey]</FluentButton >
41
- </div >
42
- <div >
43
- @if (this .Items ? .Items ? .Length > 0 )
44
- {
45
- <FluentStack Orientation =" Orientation.Horizontal" Wrap =" true" >
46
- @foreach ( var singlePhotoId in this .Items .Items .Select (p => p .PhotoId ))
30
+ @if (this .VideoInfoModel != null )
31
+ {
32
+ <VideoAuthorizeView VideoInfoModel =" @this.VideoInfoModel" CancellationTokenSource =" @this.cancellationTokenSource" >
33
+ <AuthorizedContent >
34
+ @if (this .VideoInfoId .HasValue )
47
35
{
48
- <div style =" width :400px ;" >
49
- @if (! this .PagePhotos .ContainsKey (singlePhotoId ))
50
- {
51
- <FluentCard class =" card-padding" Width =" 400" >
52
- <FluentSkeleton Shape =" SkeletonShape.Circle" ></FluentSkeleton >
53
- <FluentProgressRing ></FluentProgressRing >
54
- </FluentCard >
55
- }
56
- else
57
- {
58
- <img @key =" @singlePhotoId" loading =" lazy" src =" @(this.PagePhotos[singlePhotoId])" width =" 400" />
59
- }
60
- </div >
36
+ <FluentAccordion >
37
+ <FluentAccordionItem Expanded =" true" >
38
+ <VideoActions context =" this.VideoInfoModel" OnVideoDeleted =" LoadDataAsync" ></VideoActions >
39
+ </FluentAccordionItem >
40
+ </FluentAccordion >
61
41
}
62
- </FluentStack >
63
- }
64
- <CustomFluentPaginator State =" @this.paginationState" CurrentPageIndexChanged =" OnCurrentPageIndexChangedAsync" ></CustomFluentPaginator >
65
- </div >
66
- <FluentDivider Role =" DividerRole.Separator" ></FluentDivider >
67
- <div >
68
- @if (! String .IsNullOrWhiteSpace (this .GeneratedInfographicUri ))
69
- {
70
- <a data-enhance-nav =" false" href =" @this.GeneratedInfographicUri" target =" _blank" >
71
- <img width =" 400" class =" @ThemeConfiguration.Images.ThumbnailDefaultCss" src =" @this.GeneratedInfographicUri" />
72
- </a >
73
- <p >
74
- <FluentLabel Typo =" Typography.Body" >
75
- @this.RevisedPrompt
76
- </FluentLabel >
77
- </p >
78
- }
79
- </div >
42
+
43
+ <div >
44
+ <FluentButton Appearance =" Appearance.Accent" Type =" ButtonType.Button"
45
+ OnClick =" OnCreateNewInfographicClickedAsync" >@Localizer ! [CreateNewInfographicTextKey ]</FluentButton >
46
+ </div >
47
+ <div >
48
+ @if (this .Items ? .Items ? .Length > 0 )
49
+ {
50
+ <FluentStack Orientation =" Orientation.Horizontal" Wrap =" true" >
51
+ @foreach ( var singlePhotoId in this .Items .Items .Select (p => p .PhotoId ))
52
+ {
53
+ <div style =" width :400px ;" >
54
+ @if (! this .PagePhotos .ContainsKey (singlePhotoId ))
55
+ {
56
+ <FluentCard class =" card-padding" Width =" 400" >
57
+ <FluentSkeleton Shape =" SkeletonShape.Circle" ></FluentSkeleton >
58
+ <FluentProgressRing ></FluentProgressRing >
59
+ </FluentCard >
60
+ }
61
+ else
62
+ {
63
+ <img @key =" @singlePhotoId" loading =" lazy" src =" @(this.PagePhotos[singlePhotoId])" width =" 400" />
64
+ }
65
+ </div >
66
+ }
67
+ </FluentStack >
68
+ }
69
+ <CustomFluentPaginator State =" @this.paginationState" CurrentPageIndexChanged =" OnCurrentPageIndexChangedAsync" ></CustomFluentPaginator >
70
+ </div >
71
+ <FluentDivider Role =" DividerRole.Separator" ></FluentDivider >
72
+ <div >
73
+ @if (! String .IsNullOrWhiteSpace (this .GeneratedInfographicUri ))
74
+ {
75
+ <a data-enhance-nav =" false" href =" @this.GeneratedInfographicUri" target =" _blank" >
76
+ <img width =" 400" class =" @ThemeConfiguration.Images.ThumbnailDefaultCss" src =" @this.GeneratedInfographicUri" />
77
+ </a >
78
+ <p >
79
+ <FluentLabel Typo =" Typography.Body" >
80
+ @this.RevisedPrompt
81
+ </FluentLabel >
82
+ </p >
83
+ }
84
+ </div >
85
+
86
+ </AuthorizedContent >
87
+ </VideoAuthorizeView >
88
+ }
0 commit comments