-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Authoring): Remove add lesson before option on lessons after fir…
…st (#1714)
- Loading branch information
1 parent
ff46a0e
commit b695ce0
Showing
8 changed files
with
86 additions
and
165 deletions.
There are no files selected for viewing
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
65 changes: 46 additions & 19 deletions
65
src/assets/wise5/authoringTool/add-lesson-button/add-lesson-button.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,20 +1,47 @@ | ||
<button | ||
mat-icon-button | ||
color="primary" | ||
(click)="addLesson()" | ||
[matMenuTriggerFor]="lessonId == null ? null : lessonMenu" | ||
#menuTrigger | ||
matTooltip="Add lesson" | ||
matTooltipPosition="above" | ||
i18n-matTooltip | ||
> | ||
<mat-icon>add_circle</mat-icon> | ||
</button> | ||
<mat-menu #lessonMenu="matMenu"> | ||
<button mat-menu-item (click)="addLessonBefore()"> | ||
<mat-icon>add_circle</mat-icon><span i18n>Add Lesson Before</span> | ||
<ng-container *ngIf="lessonId == null"> | ||
<button | ||
mat-icon-button | ||
color="primary" | ||
(click)="addFirstLesson()" | ||
matTooltip="Add lesson" | ||
matTooltipPosition="above" | ||
i18n-matTooltip | ||
> | ||
<mat-icon>add_circle</mat-icon> | ||
</button> | ||
<button mat-menu-item (click)="addLessonAfter()"> | ||
<mat-icon>add_circle</mat-icon><span i18n>Add Lesson After</span> | ||
</button> | ||
</mat-menu> | ||
</ng-container> | ||
<ng-container *ngIf="lessonId != null"> | ||
<ng-container *ngIf="first"> | ||
<button | ||
mat-icon-button | ||
color="primary" | ||
[matMenuTriggerFor]="lessonMenu" | ||
#menuTrigger | ||
matTooltip="Add lesson" | ||
matTooltipPosition="above" | ||
i18n-matTooltip | ||
> | ||
<mat-icon>add_circle</mat-icon> | ||
</button> | ||
<mat-menu #lessonMenu="matMenu"> | ||
<button mat-menu-item (click)="addLessonBefore()"> | ||
<mat-icon>add_circle</mat-icon><span i18n>Add lesson before</span> | ||
</button> | ||
<button mat-menu-item (click)="addLessonAfter()"> | ||
<mat-icon>add_circle</mat-icon><span i18n>Add lesson after</span> | ||
</button> | ||
</mat-menu> | ||
</ng-container> | ||
<ng-container *ngIf="!first"> | ||
<button | ||
mat-icon-button | ||
color="primary" | ||
(click)="addLessonAfter()" | ||
matTooltip="Add lesson after" | ||
matTooltipPosition="above" | ||
i18n-matTooltip | ||
> | ||
<mat-icon>add_circle</mat-icon> | ||
</button> | ||
</ng-container> | ||
</ng-container> |
Empty file removed
0
src/assets/wise5/authoringTool/add-lesson-button/add-lesson-button.component.scss
Empty file.
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
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
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
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
Oops, something went wrong.