pull/1879/head
yann300 3 years ago
parent 5f4552ee2c
commit 1ba3c8452d
  1. 10
      libs/remix-core-plugin/src/lib/gist-handler.ts

@ -60,7 +60,7 @@ export class GistHandler extends Plugin {
title: 'Gist load error', title: 'Gist load error',
message: 'Error while loading gist. Please provide a valid Gist ID or URL.', message: 'Error while loading gist. Please provide a valid Gist ID or URL.',
modalType: 'alert', modalType: 'alert',
okLabel: 'OK', okLabel: 'OK'
} }
this.call('modal', 'modal', modalContent) this.call('modal', 'modal', modalContent)
} }
@ -70,7 +70,7 @@ export class GistHandler extends Plugin {
title: 'Gist load error', title: 'Gist load error',
message: 'Error while loading gist. Id cannot be empty.', message: 'Error while loading gist. Id cannot be empty.',
modalType: 'alert', modalType: 'alert',
okLabel: 'OK', okLabel: 'OK'
} }
this.call('modal', 'modal', modalContent) this.call('modal', 'modal', modalContent)
} }
@ -96,7 +96,7 @@ export class GistHandler extends Plugin {
title: 'Gist load error', title: 'Gist load error',
message: data.message, message: data.message,
modalType: 'alert', modalType: 'alert',
okLabel: 'OK', okLabel: 'OK'
} }
await this.call('modal', 'modal', modalContent) await this.call('modal', 'modal', modalContent)
return return
@ -107,7 +107,7 @@ export class GistHandler extends Plugin {
title: 'Gist load error', title: 'Gist load error',
message: e.message, message: e.message,
modalType: 'alert', modalType: 'alert',
okLabel: 'OK', okLabel: 'OK'
} }
await this.call('modal', 'modal', modalContent) await this.call('modal', 'modal', modalContent)
return return
@ -125,7 +125,7 @@ export class GistHandler extends Plugin {
title: 'Gist load error', title: 'Gist load error',
message: errorSavingFiles.message || errorSavingFiles, message: errorSavingFiles.message || errorSavingFiles,
modalType: 'alert', modalType: 'alert',
okLabel: 'OK', okLabel: 'OK'
} }
this.call('modal', 'modal', modalContent) this.call('modal', 'modal', modalContent)
} }

Loading…
Cancel
Save