Fix up Code Climate issues with Open Street Map code.

This commit is contained in:
Cillian O'Ruanaidh
2020-05-28 20:52:47 +01:00
committed by Matt-Yorkley
parent deafe32354
commit 94b85fb9e3
3 changed files with 23 additions and 12 deletions

View File

@@ -49,15 +49,18 @@
left: 54px;
width: 50%;
z-index: 1000;
.autocomplete-input,
.autocomplete-result-list {
border: 2px solid #888;
border: 2px solid $grey-500;
&:hover, &:active, &:focus {
border-color: $clr-brick;
}
}
.autocomplete-result-list {
border-top: 1px dotted #888;
border-top: 1px dotted $grey-500;
}
}
}

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
module PreferenceSections
class MapSection
def name

View File

@@ -1,15 +1,21 @@
class Api::OpenStreetMapConfigSerializer < ActiveModel::Serializer
attributes :open_street_map_enabled, :open_street_map_provider_name, :open_street_map_provider_options
# frozen_string_literal: true
def open_street_map_enabled
ContentConfig.open_street_map_enabled
end
module Api
class OpenStreetMapConfigSerializer < ActiveModel::Serializer
attributes :open_street_map_enabled,
:open_street_map_provider_name,
:open_street_map_provider_options
def open_street_map_provider_name
ContentConfig.open_street_map_provider_name
end
def open_street_map_enabled
ContentConfig.open_street_map_enabled
end
def open_street_map_provider_options
ContentConfig.open_street_map_provider_options.to_json
def open_street_map_provider_name
ContentConfig.open_street_map_provider_name
end
def open_street_map_provider_options
ContentConfig.open_street_map_provider_options.to_json
end
end
end