mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-15 03:41:30 +03:00
Settings dialog now says "cancel" when settings are changed and "close" otherwise
This commit is contained in:
@@ -22,6 +22,17 @@ export class SettingsComponent implements OnInit {
|
|||||||
loading_config = false;
|
loading_config = false;
|
||||||
generated_bookmarklet_code = null;
|
generated_bookmarklet_code = null;
|
||||||
|
|
||||||
|
_settingsSame = true;
|
||||||
|
|
||||||
|
get settingsAreTheSame() {
|
||||||
|
this._settingsSame = this.settingsSame()
|
||||||
|
return this._settingsSame;
|
||||||
|
}
|
||||||
|
|
||||||
|
set settingsAreTheSame(val) {
|
||||||
|
this._settingsSame = val;
|
||||||
|
}
|
||||||
|
|
||||||
constructor(private postsService: PostsService, private snackBar: MatSnackBar, private sanitizer: DomSanitizer,
|
constructor(private postsService: PostsService, private snackBar: MatSnackBar, private sanitizer: DomSanitizer,
|
||||||
private dialog: MatDialog) { }
|
private dialog: MatDialog) { }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user