Change extension back to .dcstyle.json
This commit is contained in:
parent
d0b61ed23e
commit
d112f39031
|
@ -45,7 +45,7 @@ export default Em.Component.extend({
|
||||||
}.on('didInsertElement'),
|
}.on('didInsertElement'),
|
||||||
|
|
||||||
accept: function() {
|
accept: function() {
|
||||||
return ".json,application/json" + (this.get('extension') ? "," + this.get('extension') : "");
|
return ".json,application/json,application/x-javascript,text/json" + (this.get('extension') ? "," + this.get('extension') : "");
|
||||||
}.property('extension'),
|
}.property('extension'),
|
||||||
|
|
||||||
setReady: function() {
|
setReady: function() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<form {{action "dummy" on="submit"}}>
|
<form {{action "dummy" on="submit"}}>
|
||||||
<div class='modal-body'>
|
<div class='modal-body'>
|
||||||
{{json-file-uploader value=customizationFile extension=".dcstylejson"}}
|
{{json-file-uploader value=customizationFile extension=".dcstyle.json"}}
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
{{d-button class='btn-primary' action='createCustomization' type='submit' disabled=notReady icon="plus" label='admin.customize.import'}}
|
{{d-button class='btn-primary' action='createCustomization' type='submit' disabled=notReady icon="plus" label='admin.customize.import'}}
|
||||||
|
|
|
@ -62,7 +62,7 @@ class Admin::SiteCustomizationsController < Admin::AdminController
|
||||||
format.any(:html, :text) do
|
format.any(:html, :text) do
|
||||||
raise RenderEmpty.new if request.xhr?
|
raise RenderEmpty.new if request.xhr?
|
||||||
|
|
||||||
response.headers['Content-Disposition'] = "attachment; filename=#{@site_customization.name.parameterize}.dcstylejson"
|
response.headers['Content-Disposition'] = "attachment; filename=#{@site_customization.name.parameterize}.dcstyle.json"
|
||||||
response.sending_file = true
|
response.sending_file = true
|
||||||
render json: SiteCustomizationSerializer.new(@site_customization)
|
render json: SiteCustomizationSerializer.new(@site_customization)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue