mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-22 11:03:13 +00:00
Fixed #256
This commit is contained in:
parent
622211bbe0
commit
3ed901c983
4 changed files with 22 additions and 155 deletions
|
@ -5,6 +5,7 @@
|
|||
**Note**: This version is an Alpha version, that is not made public
|
||||
|
||||
* [#257 Plex.TV Export notify when done](https://github.com/WebTools-NG/WebTools-NG/issues/257)
|
||||
* [#256 PMS Export notify when done](https://github.com/WebTools-NG/WebTools-NG/issues/256)
|
||||
|
||||
## V0.1.15
|
||||
|
||||
|
|
|
@ -113,6 +113,7 @@ const pmssettings = new class PMSSettings {
|
|||
var newFile = tmpFile.replace('.tmp', '.csv');
|
||||
fs.renameSync(tmpFile, newFile);
|
||||
log.info('renamed complete');
|
||||
return newFile;
|
||||
}
|
||||
|
||||
async getFileName({ Type, Module, Grp }){
|
||||
|
|
|
@ -161,19 +161,31 @@
|
|||
methods: {
|
||||
exportSettings: async function(){
|
||||
log.info(`Export Group Settings: ${this.selSection}`);
|
||||
|
||||
const path = require('path');
|
||||
const dirPath = path.join(i18n.t("Modules.PMS.Name"), i18n.t("Modules.PMS.Settings.Settings"));
|
||||
|
||||
await pmssettings.exportSettings({Module: dirPath, Grp: this.selSection, Data: this.$store.getters.getPMSSettings});
|
||||
const dirPath = path.join(i18n.t("Modules.PMS.Name"), i18n.t("Modules.PMS.Settings.Settings"));
|
||||
const outFile = await pmssettings.exportSettings({Module: dirPath, Grp: this.selSection, Data: this.$store.getters.getPMSSettings});
|
||||
const bodyStr = i18n.t("Modules.PMS.ExportDoneBody", [outFile]);
|
||||
this.$bvToast.toast(bodyStr, {
|
||||
title: this.$t("Modules.PMS.ExportDoneTitle"),
|
||||
autoHideDelay: 400000,
|
||||
solid: true,
|
||||
variant: 'primary',
|
||||
toaster: 'b-toaster-bottom-right'
|
||||
});
|
||||
},
|
||||
exportAllSettings: async function(){
|
||||
log.info(`Export All Settings: ${this.selSection}`);
|
||||
|
||||
const path = require('path');
|
||||
const dirPath = path.join(i18n.t("Modules.PMS.Name"), i18n.t("Modules.PMS.Settings.Settings"));
|
||||
|
||||
await pmssettings.exportSettings({Module: dirPath, Grp:'All', Data: this.$store.getters.getPMSSettings});
|
||||
const dirPath = path.join(i18n.t("Modules.PMS.Name"), i18n.t("Modules.PMS.Settings.Settings"));
|
||||
const outFile = await pmssettings.exportSettings({Module: dirPath, Grp:'All', Data: this.$store.getters.getPMSSettings});
|
||||
const bodyStr = i18n.t("Modules.PMS.ExportDoneBody", [outFile]);
|
||||
this.$bvToast.toast(bodyStr, {
|
||||
title: this.$t("Modules.PMS.ExportDoneTitle"),
|
||||
autoHideDelay: 400000,
|
||||
solid: true,
|
||||
variant: 'primary',
|
||||
toaster: 'b-toaster-bottom-right'
|
||||
});
|
||||
},
|
||||
async saveNewSetting() {
|
||||
log.debug(`Saving setting ${this.newSettingValue} for setting ${this.edtSettingKey}`);
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue