mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Refactoring google drive plugin
Summary: Finishing implementation for google drive plugin. - Refactoring plugin code to make it more robust and to follow grist ux - Changing the way server hosts untrusted user content, from different domain to different port Test Plan: Browser tests Reviewers: dsagal, paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2881
This commit is contained in:
@@ -158,6 +158,9 @@ export class Importer extends Disposable {
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
if (!this._openModalCtl) {
|
||||
this._showImportDialog();
|
||||
}
|
||||
this._renderError(err.message);
|
||||
return;
|
||||
}
|
||||
@@ -267,7 +270,7 @@ export class Importer extends Disposable {
|
||||
const tableRowModel = this._gristDoc.docModel.dataTables[importResult.tables[0].hiddenTableId].tableMetaRow;
|
||||
await this._gristDoc.openDocPage(tableRowModel.primaryViewId());
|
||||
}
|
||||
this._openModalCtl!.close();
|
||||
this._openModalCtl?.close();
|
||||
this.dispose();
|
||||
}
|
||||
|
||||
@@ -276,7 +279,7 @@ export class Importer extends Disposable {
|
||||
await this._docComm.cancelImportFiles(
|
||||
this._getTransformedDataSource(this._uploadResult), this._getHiddenTableIds());
|
||||
}
|
||||
this._openModalCtl!.close();
|
||||
this._openModalCtl?.close();
|
||||
this.dispose();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user