Merge pull request #935 from MiguelMedeiros/fix-tooltip-opreturn
Fix: op_return tooltip position.
This commit is contained in:
commit
e3aeb784ad
@ -69,6 +69,22 @@ describe('Mainnet', () => {
|
|||||||
cy.waitForSkeletonGone();
|
cy.waitForSkeletonGone();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('check op_return tx tooltip', () => {
|
||||||
|
cy.visit('/block/00000000000000000003c5f542bed265319c6cf64238cf1f1bb9bca3ebf686d2');
|
||||||
|
cy.waitForSkeletonGone();
|
||||||
|
cy.get('tbody > :nth-child(2) > :nth-child(1) > a').first().trigger('onmouseover');
|
||||||
|
cy.get('tbody > :nth-child(2) > :nth-child(1) > a').first().trigger('mouseenter');
|
||||||
|
cy.get('.tooltip-inner').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
|
it('check op_return coinbase tooltip', () => {
|
||||||
|
cy.visit('/block/00000000000000000003c5f542bed265319c6cf64238cf1f1bb9bca3ebf686d2');
|
||||||
|
cy.waitForSkeletonGone();
|
||||||
|
cy.get('div > a > .badge').first().trigger('onmouseover');
|
||||||
|
cy.get('div > a > .badge').first().trigger('mouseenter');
|
||||||
|
cy.get('.tooltip-inner').should('be.visible');
|
||||||
|
});
|
||||||
|
|
||||||
describe('search', () => {
|
describe('search', () => {
|
||||||
it('allows searching for partial Bitcoin addresses', () => {
|
it('allows searching for partial Bitcoin addresses', () => {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div [ngSwitch]="true">
|
<div [ngSwitch]="true">
|
||||||
<ng-container *ngSwitchCase="vin.is_coinbase"><a placement="bottom" [ngbTooltip]="vin.scriptsig | hex2ascii"><span i18n="transactions-list.coinbase">Coinbase</span><ng-template [ngIf]="network !== 'liquid'"> <span i18n="transactions-list.newly-generated-coins">(Newly Generated Coins)</span></ng-template></a><br /><span class="badge badge-secondary scriptmessage longer">{{ vin.scriptsig | hex2ascii }}</span></ng-container>
|
<ng-container *ngSwitchCase="vin.is_coinbase"><span i18n="transactions-list.coinbase">Coinbase</span><ng-template [ngIf]="network !== 'liquid'"> <span i18n="transactions-list.newly-generated-coins">(Newly Generated Coins)</span></ng-template><br /><a placement="bottom" [ngbTooltip]="vin.scriptsig | hex2ascii"><span class="badge badge-secondary scriptmessage longer">{{ vin.scriptsig | hex2ascii }}</span></a></ng-container>
|
||||||
<ng-container *ngSwitchCase="vin.is_pegin">
|
<ng-container *ngSwitchCase="vin.is_pegin">
|
||||||
<span i18n="transactions-list.peg-in">Peg-in</span>
|
<span i18n="transactions-list.peg-in">Peg-in</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@ -146,7 +146,7 @@
|
|||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #defaultscriptpubkey_type>
|
<ng-template #defaultscriptpubkey_type>
|
||||||
<ng-template [ngIf]="vout.scriptpubkey_type === 'op_return'" [ngIfElse]="otherPubkeyType">
|
<ng-template [ngIf]="vout.scriptpubkey_type === 'op_return'" [ngIfElse]="otherPubkeyType">
|
||||||
<a placement="bottom" [ngbTooltip]="vout.scriptpubkey_asm | hex2ascii">OP_RETURN</a> <span *ngIf="vout.scriptpubkey_asm !== 'OP_RETURN'" class="badge badge-secondary scriptmessage">{{ vout.scriptpubkey_asm | hex2ascii }}</span>
|
OP_RETURN <a placement="bottom" [ngbTooltip]="vout.scriptpubkey_asm | hex2ascii"><span *ngIf="vout.scriptpubkey_asm !== 'OP_RETURN'" class="badge badge-secondary scriptmessage">{{ vout.scriptpubkey_asm | hex2ascii }}</span></a>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #otherPubkeyType>{{ vout.scriptpubkey_type | scriptpubkeyType }}</ng-template>
|
<ng-template #otherPubkeyType>{{ vout.scriptpubkey_type | scriptpubkeyType }}</ng-template>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user