Fixed org logo detection in wizard.

This commit is contained in:
Martin Edenhofer 2015-08-04 20:57:11 +02:00
parent 3abc97df25
commit 847fa907c3
3 changed files with 18 additions and 0 deletions

View file

@ -287,6 +287,11 @@ class Base extends App.ControllerContent
@navigate '#import/' + data.import_backend
return
# import config options
if data.config
for key, value of data.config
App.Config.set(key, value)
# render page
@render()
)

View file

@ -977,8 +977,15 @@ curl http://localhost/api/v1/getting_started -v -u #{login}:#{password}
system_online_service: Setting.get('system_online_service'),
addresses: addresses,
groups: groups,
config: config,
}
true
end
def config
{
product_logo: Setting.get('product_logo')
}
end
end

View file

@ -45,6 +45,7 @@ returns
preferences: {
'Content-Type' => content_type
},
created_by_id: 1,
)
filename(file)
end
@ -91,6 +92,7 @@ returns
preferences: {
'Content-Type' => content_type
},
created_by_id: 1,
)
StaticAssets.sync
filename(file)
@ -142,6 +144,10 @@ generate filename based on Store model
extention = '.jpg'
elsif file.preferences['Content-Type'] =~ /png/i
extention = '.png'
elsif file.preferences['Content-Type'] =~ /gif/i
extention = '.gif'
elsif file.preferences['Content-Type'] =~ /svg/i
extention = '.svg'
end
"#{hash}#{extention}"
end