|
@@ -563,7 +563,7 @@ module.exports = class ProviderView {
|
|
|
this.plugin.setPluginState({ loading: true })
|
|
|
}
|
|
|
|
|
|
- render (state) {
|
|
|
+ render (state, viewOptions = {}) {
|
|
|
const { authenticated, didFirstRender } = this.plugin.getPluginState()
|
|
|
if (!didFirstRender) {
|
|
|
this.preFirstRender()
|
|
@@ -593,6 +593,7 @@ module.exports = class ProviderView {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+ const targetViewOptions = { ...this.opts, ...viewOptions }
|
|
|
const browserProps = Object.assign({}, this.plugin.getPluginState(), {
|
|
|
username: this.username,
|
|
|
getNextFolder: this.getNextFolder,
|
|
@@ -611,10 +612,10 @@ module.exports = class ProviderView {
|
|
|
done: this.donePicking,
|
|
|
cancel: this.cancelPicking,
|
|
|
title: this.plugin.title,
|
|
|
- viewType: this.opts.viewType,
|
|
|
- showTitles: this.opts.showTitles,
|
|
|
- showFilter: this.opts.showFilter,
|
|
|
- showBreadcrumbs: this.opts.showBreadcrumbs,
|
|
|
+ viewType: targetViewOptions.viewType,
|
|
|
+ showTitles: targetViewOptions.showTitles,
|
|
|
+ showFilter: targetViewOptions.showFilter,
|
|
|
+ showBreadcrumbs: targetViewOptions.showBreadcrumbs,
|
|
|
pluginIcon: this.plugin.icon,
|
|
|
i18n: this.plugin.uppy.i18n
|
|
|
})
|