This commit is contained in:
Tommy Mikkelsen 2022-07-16 17:03:23 +02:00
parent 8a55b03c0c
commit 9b071b539b
2 changed files with 35 additions and 15 deletions

View file

@ -20,6 +20,7 @@
* [#508 No timestamp in output file](https://github.com/WebTools-NG/WebTools-NG/issues/508) * [#508 No timestamp in output file](https://github.com/WebTools-NG/WebTools-NG/issues/508)
* [#521 Inconsistent Font sizing and spacing](https://github.com/WebTools-NG/WebTools-NG/issues/521) * [#521 Inconsistent Font sizing and spacing](https://github.com/WebTools-NG/WebTools-NG/issues/521)
* [#529 Spelling error in ET file range dialogue](https://github.com/WebTools-NG/WebTools-NG/issues/529) * [#529 Spelling error in ET file range dialogue](https://github.com/WebTools-NG/WebTools-NG/issues/529)
* [#531 Date-Time settings missing from settings](https://github.com/WebTools-NG/WebTools-NG/issues/531)
* [#507 Download Module](https://github.com/WebTools-NG/WebTools-NG/issues/507) * [#507 Download Module](https://github.com/WebTools-NG/WebTools-NG/issues/507)
## V0.3.17 (20220601) ## V0.3.17 (20220601)

View file

@ -43,6 +43,19 @@
{{ this.getUpdate() }} {{ this.getUpdate() }}
</b-form-select> </b-form-select>
</b-input-group> </b-input-group>
<b-input-group id="LocalDateTimeGrp" :prepend="$t('Modules.GlobalSettings.LocalDateTime')" class="mt-3">
<b-form-select id="LocalDateTime" name="LocalDateTime" type="text" class="form-control" v-model="LocalDateTime" :disabled=false :maxlength=2 v-on:change="setPrefs($event, 'General.DateTimeFormat')" :options="LocalDateTimeOptions"></b-form-select>
</b-input-group>
<b-input-group id="DateOptionGrp" :prepend="$t('Modules.GlobalSettings.DateStyle')" class="mt-3">
<b-form-select id="DateOption" name="DateOption" type="text" class="form-control" v-model="DateOption" :disabled=false :maxlength=2 v-on:change="setPrefs($event, 'General.DateOption')" :options="DateTimeOptions"></b-form-select>
</b-input-group>
<b-input-group id="TimeOptionGrp" :prepend="$t('Modules.GlobalSettings.TimeStyle')" class="mt-3">
<b-form-select id="TimeOption" name="TimeOption" type="text" class="form-control" v-model="TimeOption" :disabled=false :maxlength=2 v-on:change="setPrefs($event, 'General.TimeOption')" :options="DateTimeOptions"></b-form-select>
</b-input-group>
<br> <br>
<!-- Buttons --> <!-- Buttons -->
<div class="buttons"> <div class="buttons">
@ -60,6 +73,7 @@
<script> <script>
import i18n from '../../../../i18n'; import i18n from '../../../../i18n';
import { wtconfig } from '../../General/wtutils'; import { wtconfig } from '../../General/wtutils';
import { time } from '../../General/time';
const log = require("electron-log"); const log = require("electron-log");
export default { export default {
@ -69,7 +83,12 @@
LogLevelConsole: wtconfig.get('Log.consoleLevel'), LogLevelConsole: wtconfig.get('Log.consoleLevel'),
LogLevelSize: this.getLogFileSize(), LogLevelSize: this.getLogFileSize(),
BetaTester: this.getBeta(), BetaTester: this.getBeta(),
Update: this.getUpdate() Update: this.getUpdate(),
LocalDateTimeOptions: time.countries,
DateTimeOptions: [ i18n.t("Common.DateTime.Full"), i18n.t("Common.DateTime.Long"), i18n.t("Common.DateTime.Medium"), i18n.t("Common.DateTime.Short")],
LocalDateTime: wtconfig.get('General.DateTimeFormat'),
DateOption: wtconfig.get('General.DateOption'),
TimeOption: wtconfig.get('General.TimeOption')
}; };
}, },
created() { created() {