Improved UX in share dialog and video info dialog

This commit is contained in:
Tzahi12345
2023-01-13 22:52:52 -05:00
parent cebf8c3d36
commit 6c8b7d0052
7 changed files with 10 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
<mat-dialog-content>
<div>
<div>
<mat-checkbox [checked]="sharing_enabled" (change)="sharingChanged($event)"><ng-container i18n="Enable sharing checkbox">Enable sharing</ng-container></mat-checkbox>
<mat-checkbox [checked]="sharing_enabled" (change)="sharingChanged($event)" [disabled]="uuid && (!postsService.isLoggedIn || postsService.user?.uid !== uuid)"><ng-container i18n="Enable sharing checkbox">Enable sharing</ng-container></mat-checkbox>
</div>
<div>
<mat-checkbox style="margin-right: 15px;" (change)="useTimestampChanged()" [(ngModel)]="timestamp_enabled"><ng-container i18n="Use timestamp">Use timestamp</ng-container></mat-checkbox>

View File

@@ -21,7 +21,7 @@ export class ShareMediaDialogComponent implements OnInit {
timestamp_enabled = false;
constructor(@Inject(MAT_DIALOG_DATA) public data: any, public router: Router, private snackBar: MatSnackBar,
private postsService: PostsService) { }
public postsService: PostsService) { }
ngOnInit(): void {
if (this.data) {