Merge branch 'electrum-request-link' into 'development'
Feat(Docs): Added link to electrum methdos docs See merge request GeneralProtocols/xo/stack!89
This commit is contained in:
@@ -53,6 +53,10 @@
|
||||
<select v-model="state.selectedMethod">
|
||||
<option v-for="method of state.methods" :key="method.label" :value="method">{{ method.label }}</option>
|
||||
</select>
|
||||
<!-- Display a hint if the selected method has one -->
|
||||
<div v-if="state.selectedMethod && state.selectedMethod.hint" class="hint-container">
|
||||
<div v-html="state.selectedMethod.hint"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="state.selectedMethod" class="form-group input-group" :class="{ 'extended': state.selectedMethod.extendedInput }">
|
||||
<template v-for="(_input, i) of state.selectedMethod.inputs" :key="i">
|
||||
@@ -156,6 +160,9 @@ export interface Method<Primitive> {
|
||||
|
||||
// Whether the input is extended onto a new line
|
||||
extendedInput?: boolean
|
||||
|
||||
// Hint for the input
|
||||
hint?: string,
|
||||
}
|
||||
|
||||
export interface Props<Primitive> {
|
||||
|
||||
@@ -171,6 +171,10 @@
|
||||
color: #f46666;
|
||||
}
|
||||
|
||||
.hint-container {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
/* Mobile responsiveness */
|
||||
@media (max-width: 768px) {
|
||||
.select-group {
|
||||
|
||||
Reference in New Issue
Block a user