mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
union tag description
This commit is contained in:
committed by
Aiden McClelland
parent
fbb88a24c3
commit
c3c161cc25
@@ -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) }"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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': {
|
||||
|
||||
Reference in New Issue
Block a user