mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Linting long lines
This commit is contained in:
@@ -239,14 +239,24 @@ export class DocPageModelImpl extends Disposable implements DocPageModel {
|
||||
t("Error accessing document"),
|
||||
t("Reload"),
|
||||
async () => window.location.reload(true),
|
||||
isDocOwner ? t("You can try reloading the document, or using recovery mode. Recovery mode opens the document to be fully accessible to owners, and inaccessible to others. It also disables formulas. [{{error}}]", {error: err.message}) :
|
||||
isDenied ? t('Sorry, access to this document has been denied. [{{error}}]', {error: err.message}) :
|
||||
t("Document owners can attempt to recover the document. [{{error}}]", {error: err.message}),
|
||||
{ hideCancel: true,
|
||||
extraButtons: (isDocOwner && !isDenied) ? bigBasicButton(t("Enter recovery mode"), dom.on('click', async () => {
|
||||
await this._api.getDocAPI(this.currentDocId.get()!).recover(true);
|
||||
window.location.reload(true);
|
||||
}), testId('modal-recovery-mode')) : null,
|
||||
isDocOwner
|
||||
? t("You can try reloading the document, or using recovery mode. " +
|
||||
"Recovery mode opens the document to be fully accessible to " +
|
||||
"owners, and inaccessible to others. It also disables " +
|
||||
"formulas. [{{error}}]", {error: err.message})
|
||||
: isDenied
|
||||
? t('Sorry, access to this document has been denied. [{{error}}]', {error: err.message})
|
||||
: t("Document owners can attempt to recover the document. [{{error}}]", {error: err.message}),
|
||||
{
|
||||
hideCancel: true,
|
||||
extraButtons: !(isDocOwner && !isDenied) ? null : bigBasicButton(
|
||||
t("Enter recovery mode"),
|
||||
dom.on('click', async () => {
|
||||
await this._api.getDocAPI(this.currentDocId.get()!).recover(true);
|
||||
window.location.reload(true);
|
||||
}),
|
||||
testId('modal-recovery-mode')
|
||||
)
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user