Sumit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263849
Change subject: Fix new collection creation
......................................................................
Fix new collection creation
Pass mw.Api as a parameter to CollectionEditOverlay constructor during creating
a new collection.
Bug: T123395
Change-Id: I1aaf2bc85776d8151c53569e665b29846b202268
---
M resources/ext.gather.collections.list/CreateCollectionButton.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Gather
refs/changes/49/263849/1
diff --git a/resources/ext.gather.collections.list/CreateCollectionButton.js
b/resources/ext.gather.collections.list/CreateCollectionButton.js
index e5f1ccd..e92eaaf 100644
--- a/resources/ext.gather.collections.list/CreateCollectionButton.js
+++ b/resources/ext.gather.collections.list/CreateCollectionButton.js
@@ -40,7 +40,8 @@
ev.preventDefault();
editOverlay = new CollectionEditOverlay( {
skin: this.options.skin,
- reloadOnSave: true
+ reloadOnSave: true,
+ api: new mw.Api()
} );
editOverlay.show();
}
--
To view, visit https://gerrit.wikimedia.org/r/263849
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1aaf2bc85776d8151c53569e665b29846b202268
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Gather
Gerrit-Branch: dev
Gerrit-Owner: Sumit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits