union tag description

This commit is contained in:
Drew Ansbacher
2021-11-29 11:11:56 -07:00
committed by Aiden McClelland
parent fbb88a24c3
commit c3c161cc25
3 changed files with 57 additions and 0 deletions

View File

@@ -4,6 +4,9 @@
<ng-container *ngIf="unionSpec && entry.key === unionSpec.tag.id">
<p class="input-label">{{ unionSpec.tag.name }}</p>
<ion-item>
<ion-button *ngIf="unionSpec.tag.description" class="slot-start" fill="clear" size="small" (click)="presentUnionTagDescription(unionSpec.tag.name, unionSpec.tag.description)">
<ion-icon name="help-circle-outline"></ion-icon>
</ion-button>
<ion-label>{{ unionSpec.tag.name }}</ion-label>
<ion-select
[interfaceOptions]="{ message: getWarningText(unionSpec.warning) }"

View File

@@ -249,6 +249,15 @@ export class FormObjectComponent {
return `${element.scrollHeight}px`
}
async presentUnionTagDescription (name: string, description: string) {
const alert = await this.alertCtrl.create({
header: name,
message: description,
})
await alert.present()
}
asIsOrder () {
return 0
}

View File

@@ -1235,6 +1235,51 @@ export module Mock {
'description': 'The Bitcoin Core node to connect to over the RPC interface',
'name': 'Bitcoin Core RPC',
},
'pruning': {
'default': 'disabled',
'description': 'Blockchain Pruning Options\nReduce the blockchain size on disk\n',
'display-as': null,
'name': 'Pruning Settings',
'tag': {
'description': '- Disabled: Disable pruning\n- Automatic: Limit blockchain size on disk to a certain number of megabytes\n- Manual: Prune blockchain with the "pruneblockchain" RPC\n',
'id': 'mode',
'name': 'Pruning Mode',
'variant-names': {
'automatic': 'Automatic',
'disabled': 'Disabled',
'manual': 'Manual',
},
},
'type': 'union',
'unique-by': null,
'variants': {
'automatic': {
'size': {
'default': 550,
'description': 'Limit of blockchain size on disk.',
'integral': true,
'name': 'Max Chain Size',
'nullable': false,
'range': '[550,1000000)',
'type': 'number',
'units': 'MiB',
},
},
'disabled': { },
'manual': {
'size': {
'default': 65536,
'description': 'Prune blockchain if size expands beyond this.',
'integral': true,
'name': 'Failsafe Chain Size',
'nullable': false,
'range': '[550,1000000)',
'type': 'number',
'units': 'MiB',
},
},
},
},
'bitcoind-p2p': {
'type': 'union',
'tag': {