mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Adding import from google drive to the home screen
Summary: Importing from google drive from home screen (also for anonymous users) Test Plan: Browser tests Reviewers: dsagal, paulfitz Reviewed By: dsagal Differential Revision: https://phab.getgrist.com/D2943
This commit is contained in:
@@ -66,7 +66,7 @@ function createMainPage(appModel: AppModel, appObj: App) {
|
||||
}
|
||||
return dom.domComputed(appModel.pageType, (pageType) => {
|
||||
if (pageType === 'home') {
|
||||
return dom.create(pagePanelsHome, appModel);
|
||||
return dom.create(pagePanelsHome, appModel, appObj);
|
||||
} else if (pageType === 'billing') {
|
||||
return domAsync(loadBillingPage().then(bp => dom.create(bp.BillingPage, appModel)));
|
||||
} else if (pageType === 'welcome') {
|
||||
@@ -77,8 +77,8 @@ function createMainPage(appModel: AppModel, appObj: App) {
|
||||
});
|
||||
}
|
||||
|
||||
function pagePanelsHome(owner: IDisposableOwner, appModel: AppModel) {
|
||||
const pageModel = HomeModelImpl.create(owner, appModel);
|
||||
function pagePanelsHome(owner: IDisposableOwner, appModel: AppModel, app: App) {
|
||||
const pageModel = HomeModelImpl.create(owner, appModel, app.clientScope);
|
||||
const leftPanelOpen = Observable.create(owner, true);
|
||||
|
||||
// Set document title to strings like "Home - Grist" or "Org Name - Grist".
|
||||
|
||||
Reference in New Issue
Block a user