SetTaskStartedCallback sets the callback for when a backup task starts.
(callback func(upid string))
| 27 | |
| 28 | // SetTaskStartedCallback sets the callback for when a backup task starts. |
| 29 | func (bf *BackupForm) SetTaskStartedCallback(callback func(upid string)) { |
| 30 | bf.onTaskStarted = callback |
| 31 | } |
| 32 | |
| 33 | // ShowCreateForm displays the create backup form. |
| 34 | func (bf *BackupForm) ShowCreateForm(onSuccess func()) { |