Skip to content
Merged
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
3 changes: 2 additions & 1 deletion widgets-samples/cc/samples-cc-react-app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@

const onCCSignOut = () => {
console.log('CC Sign out has been successful');
window.location.reload();

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.

Since this is a react app, do we need to reload a page like this? This re-rendering should have been handled via the state itself, right?

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.

The idea is that during this call back, a connector app using the widget would entirely logout and go to the sign in page which means on coming back to the home page, the app is fresh as a page reload.

We are not trying to sign out and do just the refresh so as to maintain and reuse the token.

};

const onAccepted = ({task}) => {
Expand Down Expand Up @@ -475,7 +476,7 @@
style={{color: 'var(--mds-color-theme-text-error-normal)', marginBottom: '10px'}}
>
<strong>Note:</strong> When a number is dialed, the agent gets an incoming task to
accept via an Extension, Dial Number, or Browser. It's recommended to have the

Check warning on line 479 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`'` can be escaped with `&apos;`, `&lsquo;`, `&#39;`, `&rsquo;`

Check warning on line 479 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`'` can be escaped with `&apos;`, `&lsquo;`, `&#39;`, `&rsquo;`
incoming task/task list widget and call controls widget according to your needs.
</div>
</Text>
Expand Down Expand Up @@ -560,9 +561,9 @@
className="warning-note"
style={{color: 'var(--mds-color-theme-text-error-normal)', marginBottom: '10px'}}
>
<strong>Note:</strong> The "Enable Multi Login" option must be set before initializing the

Check warning on line 564 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 564 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 564 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 564 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`
SDK. Changes to this setting after SDK initialization will not take effect. Please ensure you
configure this option before clicking the "Init Widgets" button.

Check warning on line 566 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 566 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 566 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`

Check warning on line 566 in widgets-samples/cc/samples-cc-react-app/src/App.tsx

View workflow job for this annotation

GitHub Actions / linter

`"` can be escaped with `&quot;`, `&ldquo;`, `&#34;`, `&rdquo;`
</div>
</Text>
</PopoverNext>
Expand Down Expand Up @@ -825,4 +826,4 @@
);
}

export default observer(App);
export default observer(App);
Loading