Merge #183: fix installer: import_descriptor next button
2d788d5bffc1b237dc6be3c09ca2e13afcdeca67 fix installer: import_descriptor next button (edouard)
Pull request description:
Next button was grey although the descriptor form
is not empty.
ACKs for top commit:
edouardparis:
Self-ACK 2d788d5bffc1b237dc6be3c09ca2e13afcdeca67
Tree-SHA512: ad98aa33691c24e65ca0c04af47b007f4c9a5abcfd376f9a84c9a2de40a39f34f24aceebdd209ad9dd92d5ec7a7d3806ff61063ec45eb7c00a5f4b986e8c97ba
This commit is contained in:
commit
ca771e3e00
@ -393,6 +393,7 @@ impl Step for ImportDescriptor {
|
||||
// descriptor forms for import or creation cannot be both empty or filled.
|
||||
if !self.imported_descriptor.value.is_empty() {
|
||||
if let Ok(desc) = MultipathDescriptor::from_str(&self.imported_descriptor.value) {
|
||||
self.imported_descriptor.valid = true;
|
||||
ctx.descriptor = Some(desc);
|
||||
true
|
||||
} else {
|
||||
|
||||
@ -287,7 +287,7 @@ pub fn import_descriptor<'a>(
|
||||
.push(row_network)
|
||||
.push(col_descriptor),
|
||||
)
|
||||
.push(if !imported_descriptor.value.is_empty() {
|
||||
.push(if imported_descriptor.value.is_empty() {
|
||||
button::primary(None, "Next").width(Length::Units(200))
|
||||
} else {
|
||||
button::primary(None, "Next")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user