26 lines
662 B
Handlebars
26 lines
662 B
Handlebars
{{#if @model.isNew}}
|
|
<Headers::H1 @title='Create new key' />
|
|
{{/if}}
|
|
|
|
<div class='mb-4'>
|
|
<Form::Element @errors={{this.errors}}>
|
|
<MonacoEditor
|
|
@value={{json-stringify @model.editablePayload}}
|
|
@uri={{@model.setting.uri}}
|
|
@language='json'
|
|
@schema={{@model.setting}}
|
|
@sendValue={{this.save}}
|
|
@invoker={{this.invoker}}
|
|
@onDidValidation={{set this 'errors'}}
|
|
/>
|
|
</Form::Element>
|
|
|
|
<Button
|
|
type='submit'
|
|
@text='Save'
|
|
@style='primary'
|
|
@onClick={{fn this.invoker.invoke 'invokeSendValue'}}
|
|
@state={{if this.isSaving 'pending'}}
|
|
/>
|
|
<Button @text='Cancel' @onClick={{this.cancel}} />
|
|
</div>
|