implement IMPORT_PEM apply

This commit is contained in:
yggverse 2024-11-21 19:35:22 +02:00
parent 67ab5bb57e
commit 867a02a191
5 changed files with 30 additions and 18 deletions

View file

@ -122,10 +122,16 @@ impl Gemini {
profile
.identity
.gemini
.create(None, &widget.form.name.value().unwrap())
.unwrap(), // @TODO handle result,
.make(None, &widget.form.name.value().unwrap())
.unwrap(),
),
Value::IMPORT_PEM => Some(
profile
.identity
.gemini
.add(&widget.form.file.pem.take().unwrap())
.unwrap(),
),
Value::IMPORT_PEM => Some(0), // @TODO
};
// Apply