File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
frontend/src/app/questions Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 8
8
< p-toast />
9
9
} @else {
10
10
< ng-container >
11
- < div [ngStyle] ="isAdmin ? {'max-width': '1150px', 'margin': '0 auto'} : {'max-width': '900px', 'margin': '0 auto'} ">
11
+ < div
12
+ [ngStyle] ="
13
+ isAdmin ? { 'max-width': '1150px', margin: '0 auto' } : { 'max-width': '900px', margin: '0 auto' }
14
+ ">
12
15
@if (isAdmin) {
13
16
< p-toolbar styleClass ="mt-4 mb-2 gap-2 ">
14
17
< div class ="p-justify-end ">
18
21
[outlined] ="true "
19
22
label ="New "
20
23
class ="mr-2 "
21
- (onClick) ="openNewQuestion() "/>
24
+ (onClick) ="openNewQuestion() " />
22
25
< p-button
23
26
icon ="pi pi-trash "
24
27
severity ="danger "
28
31
</ div >
29
32
</ p-toolbar >
30
33
} @else {
31
- < div style ="height: 50px; "> </ div >
34
+ < div style ="height: 50px "> </ div >
32
35
}
33
36
< div class ="table-container ">
34
37
< p-table
@@ -67,13 +70,14 @@ <h3 class="m-0">Questions</h3>
67
70
</ ng-template >
68
71
< ng-template pTemplate ="body " let-question >
69
72
< tr (click) ="onRowSelect(question) ">
70
- @ if (isAdmin) {
73
+ @if (isAdmin) {
71
74
< td > < p-tableCheckbox [value] ="question " /> </ td >
72
75
< td > {{ question.id }}</ td >
73
76
< td > {{ question.title }}</ td >
74
77
< td > {{ question.topics.join(', ') }}</ td >
75
78
< td > {{ question.difficulty }}</ td >
76
- < td > < p-button
79
+ < td >
80
+ < p-button
77
81
label ="Edit "
78
82
severity ="primary "
79
83
icon ="pi pi-file-edit "
@@ -118,4 +122,4 @@ <h4>{{ clickedOnQuestion?.title }}</h4>
118
122
< p style ="white-space: pre-wrap "> {{ clickedOnQuestion?.description }}</ p >
119
123
</ div >
120
124
</ div >
121
- </ div >
125
+ </ div >
You can’t perform that action at this time.
0 commit comments