Skip to content

Commit

Permalink
Merge pull request #619 from encorelab/develop
Browse files Browse the repository at this point in the history
Add student access to AI
  • Loading branch information
markiianbabiak authored Oct 24, 2024
2 parents 9672dec + 144e40d commit 33070fb
Showing 1 changed file with 71 additions and 35 deletions.
106 changes: 71 additions & 35 deletions frontend/src/app/components/toolbar-menu/toolbar-menu.component.html
Original file line number Diff line number Diff line change
@@ -1,43 +1,79 @@
<button navbarMenu mat-icon-button [matMenuTriggerFor]="navbarMenu">
<mat-icon>dehaze</mat-icon>
<mat-icon>dehaze</mat-icon>
</button>
<mat-menu #navbarMenu="matMenu">
<button mat-menu-item *ngIf="user.role === Role.TEACHER && !!board && board.scope === BoardScope.PROJECT_SHARED" (click)="openAIAssistantDialog()">
<mat-icon>smart_toy</mat-icon>
AI Assistant
</button>
<button mat-menu-item *ngIf="user.role === Role.TEACHER && !!board && board.scope === BoardScope.PROJECT_SHARED" (click)="openWorkflowDialog()">
<mat-icon>timeline</mat-icon>
Manage Buckets & Workflows
</button>
<button mat-menu-item *ngIf="user.role === Role.TEACHER" (click)="showListModal()">
<mat-icon>list_alt</mat-icon>
List Posts
</button>
<button mat-menu-item *ngIf="user && user.role === Role.TEACHER && !!project" (click)="openProjectTodoList()">
<mat-icon>assignment_ind</mat-icon>
View All Todo Lists
</button>
<button mat-menu-item *ngIf="user.role === Role.TEACHER && !!board && board.scope === BoardScope.PROJECT_SHARED" (click)="openGroupDialog()">
<mat-icon>group_work</mat-icon>
Manage Groups
</button>
<button mat-menu-item *ngIf="user.role === Role.TEACHER" (click)="openSettingsDialog()">
<mat-icon>settings</mat-icon>
Adjust Settings
</button>
<!-- <button mat-menu-item *ngIf="!(user.role === Role.STUDENT && !board.permissions.showBucketStudent) && board.scope === BoardScope.PROJECT_SHARED" (click)="showBucketsModal()">
<button
mat-menu-item
*ngIf="!!board && board.scope === BoardScope.PROJECT_SHARED"
(click)="openAIAssistantDialog()"
>
<mat-icon>smart_toy</mat-icon>
AI Assistant
</button>
<button
mat-menu-item
*ngIf="
user.role === Role.TEACHER &&
!!board &&
board.scope === BoardScope.PROJECT_SHARED
"
(click)="openWorkflowDialog()"
>
<mat-icon>timeline</mat-icon>
Manage Buckets & Workflows
</button>
<button
mat-menu-item
*ngIf="user.role === Role.TEACHER"
(click)="showListModal()"
>
<mat-icon>list_alt</mat-icon>
List Posts
</button>
<button
mat-menu-item
*ngIf="user && user.role === Role.TEACHER && !!project"
(click)="openProjectTodoList()"
>
<mat-icon>assignment_ind</mat-icon>
View All Todo Lists
</button>
<button
mat-menu-item
*ngIf="
user.role === Role.TEACHER &&
!!board &&
board.scope === BoardScope.PROJECT_SHARED
"
(click)="openGroupDialog()"
>
<mat-icon>group_work</mat-icon>
Manage Groups
</button>
<button
mat-menu-item
*ngIf="user.role === Role.TEACHER"
(click)="openSettingsDialog()"
>
<mat-icon>settings</mat-icon>
Adjust Settings
</button>
<!-- <button mat-menu-item *ngIf="!(user.role === Role.STUDENT && !board.permissions.showBucketStudent) && board.scope === BoardScope.PROJECT_SHARED" (click)="showBucketsModal()">
<mat-icon>shopping_basket</mat-icon>
View Buckets
</button> -->
<a href="https://score.oise.utoronto.ca/" style="text-decoration:none;color:black" target="_blank">
<button mat-menu-item style="text-decoration:none;color:black">
<mat-icon>launch</mat-icon>
Go to SCORE
</button>
</a>
<button mat-menu-item (click)="signOut()">
<mat-icon class="material-icons-outlined">logout</mat-icon>
Log Out
<a
href="https://score.oise.utoronto.ca/"
style="text-decoration: none; color: black"
target="_blank"
>
<button mat-menu-item style="text-decoration: none; color: black">
<mat-icon>launch</mat-icon>
Go to SCORE
</button>
</a>
<button mat-menu-item (click)="signOut()">
<mat-icon class="material-icons-outlined">logout</mat-icon>
Log Out
</button>
</mat-menu>

0 comments on commit 33070fb

Please sign in to comment.