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
3 changes: 3 additions & 0 deletions packages/connect-popup/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export const handleUIAffectingMessage = (message: CoreEventMessage) => {
case UI_REQUEST.INVALID_PASSPHRASE:
view.initInvalidPassphraseView(message.payload);
break;
case UI_REQUEST.REQUEST_THP_PAIRING:
showView('thp-pairing');
break;
// no default
}
};
Expand Down
6 changes: 6 additions & 0 deletions packages/connect-popup/src/static/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -2544,3 +2544,9 @@ section > div .divider span:after {
.iframe-failure .cancel {
margin-top: 16px;
}

.thp-pairing {
display: flex;
flex-direction: column;
gap: 16px;
}
2 changes: 2 additions & 0 deletions packages/connect-popup/src/static/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
<%= require('./views/confirm-output.html') %>
<!-- Passphrase on device -->
<%= require('./views/passphrase-on-device.html') %>
<!-- THP pairing -->
<%= require('./views/thp-pairing.html') %>

<!-- Iframe not loading failure start-->
<!-- moved into @trezor/connect-ui -->
Expand Down
14 changes: 14 additions & 0 deletions packages/connect-popup/src/static/views/thp-pairing.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<div class="thp-pairing">
<h3>Your Trezor is not supported by Connect Popup</h3>
<p>
For enhanced security, Trezor Safe 7 and later devices are not supported by Connect Popup.
</p>
<p>
To connect to third party apps, please install
<a href="https://suite.trezor.io" target="_blank">Trezor Suite</a>. Ensure that the app you
are connecting to supports the latest version of Trezor Connect.
</p>

<button class="confirm submit" tabindex="4" onclick="window.closeWindow();">Close</button>
</div>
<!-- Seedless: END -->
Loading