-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #619 from encorelab/develop
Add student access to AI
- Loading branch information
Showing
1 changed file
with
71 additions
and
35 deletions.
There are no files selected for viewing
106 changes: 71 additions & 35 deletions
106
frontend/src/app/components/toolbar-menu/toolbar-menu.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |