Bug 1032070 - [Settings] add done feature in onBeforsShow()

nit: I would prefer
```
Promise.resolve(panel[funcName](panelElement, options))
.then(function() {

...

```