Merge pull request #534 from WebTools-NG/#531-Date-Time-settings-missing-from-settings

Fix #531
This commit is contained in:
Tommy Mikkelsen 2022-07-16 17:03:51 +02:00 committed by GitHub
commit e59ea6ef75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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)
* [#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)
* [#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)
## V0.3.17 (20220601)

View file

@ -43,6 +43,19 @@
{{ this.getUpdate() }}
</b-form-select>
</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>
<!-- Buttons -->
<div class="buttons">
@ -60,6 +73,7 @@
<script>
import i18n from '../../../../i18n';
import { wtconfig } from '../../General/wtutils';
import { time } from '../../General/time';
const log = require("electron-log");
export default {
@ -69,7 +83,12 @@
LogLevelConsole: wtconfig.get('Log.consoleLevel'),
LogLevelSize: this.getLogFileSize(),
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() {