mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
support disable map
This commit is contained in:
@@ -432,7 +432,9 @@ func loadDataConfiguration(config *Config, configFile *ini.File, sectionName str
|
|||||||
}
|
}
|
||||||
|
|
||||||
func loadMapConfiguration(config *Config, configFile *ini.File, sectionName string) error {
|
func loadMapConfiguration(config *Config, configFile *ini.File, sectionName string) error {
|
||||||
if getConfigItemStringValue(configFile, sectionName, "map_provider") == OpenStreetMapProvider {
|
if getConfigItemStringValue(configFile, sectionName, "map_provider") == "" {
|
||||||
|
config.MapProvider = ""
|
||||||
|
} else if getConfigItemStringValue(configFile, sectionName, "map_provider") == OpenStreetMapProvider {
|
||||||
config.MapProvider = OpenStreetMapProvider
|
config.MapProvider = OpenStreetMapProvider
|
||||||
} else {
|
} else {
|
||||||
return errs.ErrInvalidMapProvider
|
return errs.ErrInvalidMapProvider
|
||||||
|
|||||||
@@ -305,7 +305,7 @@
|
|||||||
<f7-actions-button v-if="mode !== 'view'" @click="updateGeoLocation(true)">{{ $t('Update Geographic Location') }}</f7-actions-button>
|
<f7-actions-button v-if="mode !== 'view'" @click="updateGeoLocation(true)">{{ $t('Update Geographic Location') }}</f7-actions-button>
|
||||||
<f7-actions-button v-if="mode !== 'view'" @click="clearGeoLocation">{{ $t('Clear Geographic Location') }}</f7-actions-button>
|
<f7-actions-button v-if="mode !== 'view'" @click="clearGeoLocation">{{ $t('Clear Geographic Location') }}</f7-actions-button>
|
||||||
</f7-actions-group>
|
</f7-actions-group>
|
||||||
<f7-actions-group>
|
<f7-actions-group v-if="$settings.getMapProvider()">
|
||||||
<f7-actions-button :class="{ 'disabled': !transaction.geoLocation }" @click="showGeoLocationMapSheet = true">{{ $t('Show on the map') }}</f7-actions-button>
|
<f7-actions-button :class="{ 'disabled': !transaction.geoLocation }" @click="showGeoLocationMapSheet = true">{{ $t('Show on the map') }}</f7-actions-button>
|
||||||
</f7-actions-group>
|
</f7-actions-group>
|
||||||
<f7-actions-group>
|
<f7-actions-group>
|
||||||
|
|||||||
Reference in New Issue
Block a user