feat: add dedicated Profile management page
This commit is contained in:
@@ -26,6 +26,7 @@ type operationCoordinator struct {
|
||||
errorExpanded bool
|
||||
errorOffset int
|
||||
confirmation *app.Confirmation
|
||||
confirmationDialog confirmationDialog
|
||||
confirmationIntent *app.Intent
|
||||
quitRequested bool
|
||||
}
|
||||
@@ -102,6 +103,7 @@ func (o *operationCoordinator) apply(update app.OperationUpdate) (firstFailedTar
|
||||
if request := update.Confirmation(); request != nil {
|
||||
intent := o.intent
|
||||
o.confirmation = request
|
||||
o.confirmationDialog = newConfirmationDialog(*request)
|
||||
o.confirmationIntent = &intent
|
||||
}
|
||||
if update.IsTerminal() {
|
||||
@@ -154,6 +156,7 @@ func (o *operationCoordinator) acknowledgeError() {
|
||||
|
||||
func (o *operationCoordinator) cancelConfirmation() {
|
||||
o.confirmation = nil
|
||||
o.confirmationDialog = confirmationDialog{}
|
||||
o.confirmationIntent = nil
|
||||
o.status = app.OperationStatus{}
|
||||
}
|
||||
@@ -165,6 +168,7 @@ func (o *operationCoordinator) confirmedIntent() (app.Intent, bool) {
|
||||
intent := *o.confirmationIntent
|
||||
intent.Confirm = true
|
||||
o.confirmation = nil
|
||||
o.confirmationDialog = confirmationDialog{}
|
||||
o.confirmationIntent = nil
|
||||
return intent, true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user