diff --git a/Website/ui/src/modules/Settings/MainSettings.vue b/Website/ui/src/modules/Settings/MainSettings.vue index 4fee02b27..5ec0c0de4 100644 --- a/Website/ui/src/modules/Settings/MainSettings.vue +++ b/Website/ui/src/modules/Settings/MainSettings.vue @@ -93,6 +93,18 @@ {{ errors.first('vat_appliance') }} +
+ + + + Select Usage Types + {{ ut.name }} + + + + {{ errors.first('usage_type') }} +
Save
@@ -107,6 +119,7 @@ import { CurrencyListService } from '@/services/CurrencyListService' import { LanguagesService } from '@/services/LanguagesService' import { CountryListService } from '@/services/CountryListService' +import { UsageTypeListService } from '@/services/UsageTypeListService' import { MainSettingsService } from '@/services/MainSettingsService' import { EventBus } from '@/shared/eventbus' @@ -123,9 +136,11 @@ export default { currencyListService: new CurrencyListService(), languagesService: new LanguagesService(), countryListService: new CountryListService(), + usageTypeListService: new UsageTypeListService(), currencyList: [], languagesList: [], countryList: [], + usageTypeList: [], progress: false, } @@ -140,6 +155,7 @@ export default { this.getCurrencyList() this.getLanguagesList() this.getCountryList() + this.getUsageTypeList() }, methods: { fetchMainSettings () { @@ -167,6 +183,13 @@ export default { this.alertNotify('error', e.message) } }, + async getUsageTypeList () { + try { + await this.usageTypeListService.list() + } catch (e) { + this.alertNotify('error', e.message) + } + }, async updateMainSettings () { this.progress = true diff --git a/Website/ui/src/modules/Settings/PluginSettings.vue b/Website/ui/src/modules/Settings/PluginSettings.vue index 789dc75bc..2b67943d7 100644 --- a/Website/ui/src/modules/Settings/PluginSettings.vue +++ b/Website/ui/src/modules/Settings/PluginSettings.vue @@ -1,9 +1,11 @@