mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-19 10:19:27 -05:00
Prevent confirmation warning after save
This commit is contained in:
parent
8080b7a119
commit
bc02dc30b1
@ -170,6 +170,7 @@ export class DocumentDetailComponent implements OnInit, DirtyComponent {
|
|||||||
|
|
||||||
save() {
|
save() {
|
||||||
this.networkActive = true
|
this.networkActive = true
|
||||||
|
this.store.next(this.documentForm.value)
|
||||||
this.documentsService.update(this.document).subscribe(result => {
|
this.documentsService.update(this.document).subscribe(result => {
|
||||||
this.close()
|
this.close()
|
||||||
this.networkActive = false
|
this.networkActive = false
|
||||||
@ -182,6 +183,7 @@ export class DocumentDetailComponent implements OnInit, DirtyComponent {
|
|||||||
|
|
||||||
saveEditNext() {
|
saveEditNext() {
|
||||||
this.networkActive = true
|
this.networkActive = true
|
||||||
|
this.store.next(this.documentForm.value)
|
||||||
this.documentsService.update(this.document).subscribe(result => {
|
this.documentsService.update(this.document).subscribe(result => {
|
||||||
this.error = null
|
this.error = null
|
||||||
this.documentListViewService.getNext(this.document.id).subscribe(nextDocId => {
|
this.documentListViewService.getNext(this.document.id).subscribe(nextDocId => {
|
||||||
|
@ -111,6 +111,7 @@ export class SettingsComponent implements OnInit, OnDestroy, DirtyComponent {
|
|||||||
this.settings.set(SETTINGS_KEYS.DATE_LOCALE, this.settingsForm.value.dateLocale)
|
this.settings.set(SETTINGS_KEYS.DATE_LOCALE, this.settingsForm.value.dateLocale)
|
||||||
this.settings.set(SETTINGS_KEYS.DATE_FORMAT, this.settingsForm.value.dateFormat)
|
this.settings.set(SETTINGS_KEYS.DATE_FORMAT, this.settingsForm.value.dateFormat)
|
||||||
this.settings.setLanguage(this.settingsForm.value.displayLanguage)
|
this.settings.setLanguage(this.settingsForm.value.displayLanguage)
|
||||||
|
this.store.next(this.settingsForm.value)
|
||||||
this.documentListViewService.updatePageSize()
|
this.documentListViewService.updatePageSize()
|
||||||
this.settings.updateDarkModeSettings()
|
this.settings.updateDarkModeSettings()
|
||||||
this.toastService.showInfo($localize`Settings saved successfully.`)
|
this.toastService.showInfo($localize`Settings saved successfully.`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user