mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-22 19:13:19 +00:00
#242 fixed
This commit is contained in:
parent
486b39102c
commit
eadaac8a9e
4 changed files with 52 additions and 14 deletions
22
CHANGELOG.md
22
CHANGELOG.md
|
@ -1,17 +1,23 @@
|
|||
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log
|
||||
|
||||
## V0.1.15
|
||||
|
||||
**Note**: This version is an Alpha version, that is not made public
|
||||
|
||||
* [#242 Button or setting to restore WebTools-NG default settings](https://github.com/WebTools-NG/WebTools-NG/issues/242)
|
||||
|
||||
## V0.1.14
|
||||
|
||||
**Note**: This version is an Alpha version, that is not made public
|
||||
|
||||
* [#229 Bump electron from 7.3.3 to 9.4.0](https://github.com/WebTools-NG/WebTools-NG/pull/229)
|
||||
* [#227 ET Export filename](https://github.com/WebTools-NG/WebTools-NG/pull/227)
|
||||
* [#231 Open LogDir folder failes](https://github.com/WebTools-NG/WebTools-NG/pull/231)
|
||||
* [#226 Exporting episodes](https://github.com/WebTools-NG/WebTools-NG/pull/226)
|
||||
* [#233 Electron errors after updating](https://github.com/WebTools-NG/WebTools-NG/pull/233)
|
||||
* [#234 Editing a custom level](https://github.com/WebTools-NG/WebTools-NG/pull/234)
|
||||
* [#238 We need a Text qualifier](https://github.com/WebTools-NG/WebTools-NG/pull/238)
|
||||
* [#239 Does not output if the output folder does NOT exist](https://github.com/WebTools-NG/WebTools-NG/pull/239)
|
||||
* [#229 Bump electron from 7.3.3 to 9.4.0](https://github.com/WebTools-NG/WebTools-NG/issues/242)
|
||||
* [#227 ET Export filename](https://github.com/WebTools-NG/WebTools-NG/issues/227)
|
||||
* [#231 Open LogDir folder failes](https://github.com/WebTools-NG/WebTools-NG/issues/231)
|
||||
* [#226 Exporting episodes](https://github.com/WebTools-NG/WebTools-NG/issues/226)
|
||||
* [#233 Electron errors after updating](https://github.com/WebTools-NG/WebTools-NG/issues/233)
|
||||
* [#234 Editing a custom level](https://github.com/WebTools-NG/WebTools-NG/issues/234)
|
||||
* [#238 We need a Text qualifier](https://github.com/WebTools-NG/WebTools-NG/issues/238)
|
||||
* [#239 Does not output if the output folder does NOT exist](https://github.com/WebTools-NG/WebTools-NG/issues/239)
|
||||
|
||||
## V0.1.13
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "webtools-ng",
|
||||
"productName": "WebTools-NG",
|
||||
"version": "0.1.14",
|
||||
"version": "0.1.15",
|
||||
"description": "WebTools Next Generation 4 Plex",
|
||||
"author": "dane22 & CPSO",
|
||||
"license": "MPL-2.0",
|
||||
|
|
|
@ -267,12 +267,17 @@
|
|||
"RestartNeeded": "When changing this setting, a restart is needed",
|
||||
"FactoryReset": "Factory Reset",
|
||||
"FactoryResetWarning": "Factory Reset will reset this app towards how it was when first installed",
|
||||
"FactoryResetConfirmTitle": "Confirm Factory Reset",
|
||||
"FactoryResetConfirmBody": "Doing a Factory Reset will erase all your settings, as it was when first installed",
|
||||
"FactoryResetConfirmBody2": "After doing a Factory Reset, you must start {0} again",
|
||||
"FactoryResetBtnCancel": "Cancel",
|
||||
"FactoryResetBtnOk": "Do a Factory Reset",
|
||||
"BetaTester": "Subscribe to Beta updates",
|
||||
"TTBetaTester": "When selected, you'll be notified when a new beta version is available",
|
||||
"Update": "Subscribe to updates (If false, beta updates will also be disabled)",
|
||||
"TTUpdate": "When selected, you'll be notified when a new update is available",
|
||||
"True": "True",
|
||||
"False": "False"
|
||||
"False": "False"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -56,6 +56,23 @@
|
|||
</b-form-select>
|
||||
</b-input-group>
|
||||
|
||||
<!-- Factory Reset -->
|
||||
<b-modal ref="confirmFactoryReset" hide-footer v-bind:title="$t('Modules.GlobalSettings.FactoryResetConfirmTitle')" >
|
||||
<div class="d-block text-center">
|
||||
{{ $t('Modules.GlobalSettings.FactoryResetConfirmBody') }}
|
||||
{{ $t('Modules.GlobalSettings.FactoryResetConfirmBody2', [$t('Common.AppName')]) }}
|
||||
</div>
|
||||
<b-button class="mt-3" variant="info" block @click="factoryResetClose">{{ $t('Modules.GlobalSettings.FactoryResetBtnCancel') }}</b-button>
|
||||
<b-button class="mt-3" variant="danger" block @click="factoryReset">{{ $t('Modules.GlobalSettings.FactoryResetBtnOk') }}</b-button>
|
||||
</b-modal>
|
||||
<br>
|
||||
<br>
|
||||
<div id="buttons" class="text-center">
|
||||
<b-button-group >
|
||||
<b-button variant="danger" class="mr-1" @click="confirmFactoryReset">{{ $t('Modules.GlobalSettings.FactoryReset') }}</b-button>
|
||||
</b-button-group>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</b-container>
|
||||
</template>
|
||||
|
@ -95,11 +112,21 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
factoryReset() {
|
||||
factoryResetClose() {
|
||||
this.$refs['confirmFactoryReset'].hide();
|
||||
},
|
||||
confirmFactoryReset(){
|
||||
this.$refs['confirmFactoryReset'].show();
|
||||
},
|
||||
factoryReset() {
|
||||
// Doing a factory reset
|
||||
log.warn('Doing a factory reset');
|
||||
require('electron').remote.app.relaunch();
|
||||
require('electron').remote.app.quit();
|
||||
log.warn('Doing a factory reset');
|
||||
var fs = require('fs');
|
||||
const postfix = '-' + new Date().toISOString().replaceAll('-','').replaceAll(':','').split('.')[0]+"Z";
|
||||
fs.copyFileSync(wtutils.ConfigFileName, wtutils.ConfigFileName + postfix);
|
||||
fs.unlinkSync(wtutils.ConfigFileName);
|
||||
require('electron').remote.app.relaunch();
|
||||
require('electron').remote.app.exit();
|
||||
},
|
||||
getUpdate: function(){
|
||||
if (wtconfig.get('Update.Update', true)){
|
||||
|
|
Loading…
Reference in a new issue