mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
aba3c8ed86
* Plugin arg validation, prompt tag, and some changes needed * Version bumps
22 lines
650 B
JavaScript
22 lines
650 B
JavaScript
module.exports.templateTags = [{
|
|
displayName: 'Prompt',
|
|
name: 'prompt',
|
|
description: 'prompt user for input',
|
|
args: [{
|
|
displayName: 'Title',
|
|
type: 'string'
|
|
}, {
|
|
displayName: 'Label',
|
|
type: 'string'
|
|
}, {
|
|
displayName: 'Default Value',
|
|
type: 'string',
|
|
help: 'This value is used to pre-populate the prompt dialog, but is ALSO used ' +
|
|
'when the app renders preview values (like the one below). This is to prevent the ' +
|
|
'prompt from displaying too frequently during general app use.'
|
|
}],
|
|
run (context, title, label, defaultValue) {
|
|
return context.app.prompt({title, label, defaultValue});
|
|
}
|
|
}];
|