Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions dist/doboard-widget-bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/doboard-widget-bundle.min.js.map

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions js/src/handlers.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

async function spotFixConfirmUserEmail(emailConfirmationToken, params) {
const result = await spotFixUserConfirmEmailDoboard(emailConfirmationToken);
// Save session data to LS
// Save session data to LS
setSpotfixEmail(result.email);
localStorage.setItem('spotfix_session_id', result.sessionId);
localStorage.setItem('spotfix_user_id', result.userId);
Expand All @@ -26,6 +26,7 @@ async function spotFixConfirmUserEmail(emailConfirmationToken, params) {
taskTitle: pendingTask.selectedText || 'New Task',
taskDescription: pendingTask.description || '',
selectedData: pendingTask,
task_type: params.task_type,
projectToken: params.projectToken,
projectId: params.projectId,
accountId: params.accountId,
Expand Down Expand Up @@ -213,7 +214,7 @@ function registerUser(taskDetails) {
} else if (response.sessionId) {
localStorage.setItem('spotfix_session_id', response.sessionId);
localStorage.setItem('spotfix_user_id', response.userId);
setSpotfixEmail(response.email);
setSpotfixEmail(response.email);
localStorage.setItem('spotfix_accounts', JSON.stringify(response.accounts));
spotfixIndexedDB.init();
localStorage.setItem('spotfix_widget_is_closed', '0');
Expand Down
3 changes: 2 additions & 1 deletion js/src/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CleanTalkWidgetDoboard {
if (emailToken) {
try {
// Confirm email and create task
const createdTask = await spotFixConfirmUserEmail(emailToken, this.params);
const createdTask = await spotFixConfirmUserEmail(emailToken, {...this.params, task_type: this.new_task_type});
this.allTasksData = await getAllTasks(this.params, this.nonRequesting);
// Open task interface
this.currentActiveTaskId = createdTask.taskId;
Expand Down Expand Up @@ -234,6 +234,7 @@ class CleanTalkWidgetDoboard {
projectToken: this.params.projectToken,
projectId: this.params.projectId,
accountId: this.params.accountId,
task_type: this.new_task_type,
taskMeta: JSON.stringify(this.selectedData ? this.selectedData : { pageURL: window.location.href }),
};

Expand Down
Loading