Contact Popup viewSaveTrigger never used

This commit is contained in:
the-djmaze 2022-07-22 22:14:05 +02:00
parent c678031d00
commit e49cbbbbec

View file

@ -1,6 +1,5 @@
import { koArrayWithDestroy } from 'External/ko'; import { koArrayWithDestroy } from 'External/ko';
import { SaveSettingsStep } from 'Common/Enums';
import { ComposeType } from 'Common/EnumsUser'; import { ComposeType } from 'Common/EnumsUser';
import { registerShortcut } from 'Common/Globals'; import { registerShortcut } from 'Common/Globals';
import { arrayLength, pInt } from 'Common/Utils'; import { arrayLength, pInt } from 'Common/Utils';
@ -53,8 +52,6 @@ export class ContactsPopupView extends AbstractViewPopup {
viewID: '', viewID: '',
viewReadOnly: false, viewReadOnly: false,
viewSaveTrigger: SaveSettingsStep.Idle,
viewSaving: false, viewSaving: false,
watchDirty: false, watchDirty: false,
@ -211,7 +208,6 @@ export class ContactsPopupView extends AbstractViewPopup {
saveCommand() { saveCommand() {
this.viewSaving(true); this.viewSaving(true);
this.viewSaveTrigger(SaveSettingsStep.Animate);
const requestUid = Jua.randomId(); const requestUid = Jua.randomId();
@ -233,13 +229,8 @@ export class ContactsPopupView extends AbstractViewPopup {
res = true; res = true;
} }
setTimeout(() =>
this.viewSaveTrigger(res ? SaveSettingsStep.TrueResult : SaveSettingsStep.FalseResult)
, 350);
if (res) { if (res) {
this.watchDirty(false); this.watchDirty(false);
setTimeout(() => this.viewSaveTrigger(SaveSettingsStep.Idle), 1000);
} }
}, { }, {
RequestUid: requestUid, RequestUid: requestUid,