Skip to content

Commit cfc7d67

Browse files
committed
Merge PR #87 into 16.0
Signed-off-by pedrobaeza
2 parents 75d1365 + a98ceb4 commit cfc7d67

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

spreadsheet_oca/static/src/spreadsheet/bundle/spreadsheet_renderer.esm.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export class SpreadsheetRenderer extends Component {
9292
editText: this.editText.bind(this),
9393
askConfirmation: this.askConfirmation.bind(this),
9494
downloadAsXLXS: this.downloadAsXLXS.bind(this),
95+
raiseError: this.raiseError.bind(this),
9596
});
9697
onWillStart(async () => {
9798
await loadSpreadsheetDependencies();
@@ -148,6 +149,12 @@ export class SpreadsheetRenderer extends Component {
148149
});
149150
this.ui.unblock();
150151
}
152+
raiseError(content) {
153+
this.state.dialogContent = content;
154+
this.confirmDialog = this.closeDialog;
155+
this.state.dialogDisplayed = true;
156+
this.state.dialogHideInputBox = true;
157+
}
151158
}
152159

153160
SpreadsheetRenderer.template = "spreadsheet_oca.SpreadsheetRenderer";

0 commit comments

Comments
 (0)