Skip to content

feat: autosave processing form fields before timeout [WTEL-9474](https://webitel.atlassian.net/browse/WTEL-9474) - #1412

Open
RomanZaritskyi wants to merge 1 commit into
mainfrom
feat/WTEL-9474/postprocessing-autosave
Open

feat: autosave processing form fields before timeout [WTEL-9474](https://webitel.atlassian.net/browse/WTEL-9474)#1412
RomanZaritskyi wants to merge 1 commit into
mainfrom
feat/WTEL-9474/postprocessing-autosave

Conversation

@RomanZaritskyi

Copy link
Copy Markdown
Contributor

No description provided.

@@ -0,0 +1,201 @@
import { autosaveProcessingForms } from '../processingAutosave.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

прошу подивитися налаштування ІДЕ щоб вона при автоімпорті не дописувала js/ts ext

@@ -1,5 +1,6 @@
import { watch } from 'vue';
import { WebSocketConnectionState } from '../../../../ui/enums/WebSocketConnectionState.enum.ts';
import { autosaveProcessingForms } from '../scripts/processingAutosave.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

і забрати файл екст

context.dispatch('CLEAR_ALL_TASKS');
});
},
SUBSCRIBE_TO_PROCESSING_AUTOSAVE: (context) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб це краще робити на рівні тої таби, чи щось таке?
мені виглядає стрьомно що тут вигрібається прям все, і по всьому йде та функція, щосекунди


aliveAttempts.add(attempt.id);

if (!attempt._processing?.autosave) return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

оцей _processing підказує наче це якесь приватне проперті на яке краще не зашиватись)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Дійсно, я не додивився , я знайшов подібні патерни у воркспейсі, тому використав, але у webitel-sdk бачу що якщо треба щось отримати з _processing то пишеться гетер.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб ts файл зробити, типізувати?

@@ -0,0 +1,30 @@
import { formattingFormBeforeSend } from '../../../../ui/modules/info-section/modules/processing/script/formattingFormBeforeSend.js';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

файл екст

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants