You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-24 23:26:50 +02:00
Merge branch 'dev' of github.com:laurent22/joplin into dev
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import ViewController from './ViewController';
|
||||
import shim from '../../shim';
|
||||
import { ButtonId, ButtonSpec } from './api/types';
|
||||
import { ButtonSpec, DialogResult } from './api/types';
|
||||
const { toSystemSlashes } = require('../../path-utils');
|
||||
|
||||
export enum ContainerType {
|
||||
@ -95,7 +95,7 @@ export default class WebviewController extends ViewController {
|
||||
// Specific to dialogs
|
||||
// ---------------------------------------------
|
||||
|
||||
public async open(): Promise<ButtonId> {
|
||||
public async open(): Promise<DialogResult> {
|
||||
this.setStoreProp('opened', true);
|
||||
|
||||
return new Promise((resolve: Function, reject: Function) => {
|
||||
@ -107,7 +107,7 @@ export default class WebviewController extends ViewController {
|
||||
this.setStoreProp('opened', false);
|
||||
}
|
||||
|
||||
public closeWithResponse(result: ButtonId) {
|
||||
public closeWithResponse(result: DialogResult) {
|
||||
this.close();
|
||||
this.closeResponse_.resolve(result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user