Skip to content

Commit

Permalink
Merge branch 'master' into 8173-myplanet-reports-hide-export-button-i…
Browse files Browse the repository at this point in the history
…f-no-data-to-export
  • Loading branch information
dogi authored Jan 31, 2025
2 parents 69cbb48 + 05a545f commit 701cc58
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"license": "AGPL-3.0",
"version": "0.16.91",
"myplanet": {
"latest": "v0.22.58",
"min": "v0.21.58"
"latest": "v0.22.63",
"min": "v0.21.63"
},
"scripts": {
"ng": "ng",
Expand Down
5 changes: 4 additions & 1 deletion src/app/courses/courses.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,16 @@ export class CoursesComponent implements OnInit, OnChanges, AfterViewInit, OnDes
}

openCourseViewDialog(courseId) {
this.dialog.open(CoursesViewDetailDialogComponent, {
const dialogRef = this.dialog.open(CoursesViewDetailDialogComponent, {
data: { courseId },
minWidth: '600px',
maxWidth: '90vw',
maxHeight: '90vh',
autoFocus: false
});
dialogRef.afterClosed().subscribe(() => {
this.dialog.closeAll();
});
}

addTag(tag: string) {
Expand Down
9 changes: 3 additions & 6 deletions src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1><ng-container>Planet</ng-container> {{planetName}}</h1>
<span *ngIf="layout === 'classic' && !forceModern">
<button mat-icon-button routerLink="/chat" i18n-title title="Chat"><mat-icon>question_answer</mat-icon></button>
<button mat-icon-button planetFeedback i18n-title title="Submit Feedback"><mat-icon>feedback_outline</mat-icon></button>
<button mat-icon-button routerLink="/feedback" i18n-title title="Review Feedback"><mat-icon>mail_outline</mat-icon></button>
<button mat-icon-button routerLink="/feedback" i18n-title title="Review Feedback"><mat-icon>mail</mat-icon></button>
<ng-container *planetAuthorizedRoles>
<button mat-icon-button planetSync i18n-title title="Sync" *ngIf="onlineStatus === 'accepted'"><mat-icon svgIcon="feedback"></mat-icon></button>
</ng-container>
Expand Down Expand Up @@ -211,12 +211,9 @@ <h1><ng-container>Planet</ng-container> {{planetName}}</h1>
</a>
</li>
</ng-container>
<li style="text-align: center;">
<planet-language [iconOnly]="layout === 'modern' || forceModern"></planet-language>
<li>
<a mat-button (click)="openLanguageDialog()" i18n-title title="Change Language">
<mat-icon>translate</mat-icon>
<label *ngIf="sidenavState === 'open'" i18n>Language</label>
</a>
</li>
<ng-container *planetAuthorizedRoles>
<li *ngIf="onlineStatus === 'accepted'">
<a mat-button planetSync i18n-title title="Sync">
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/planet-language.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<button mat-button [matMenuTriggerFor]="languageMenu">
<mat-icon>language</mat-icon>
<mat-icon>translate</mat-icon>
<span *ngIf="!iconOnly">{{this.currentLanguage.name}}</span>
</button>

Expand Down

0 comments on commit 701cc58

Please sign in to comment.