|
|
@ -170,7 +170,8 @@ export default { |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
async exportMeta() { |
|
|
|
async exportMeta() { |
|
|
|
this.dialogShow = true |
|
|
|
this.dialogShow = true |
|
|
|
this.confirmMessage = 'Do you want to export metadata from meta tables?' |
|
|
|
// this.confirmMessage = 'Do you want to export metadata from meta tables?' |
|
|
|
|
|
|
|
this.confirmMessage = `${this.$t('msg.info.exportMetadata')}` |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
this.dialogShow = false |
|
|
|
this.dialogShow = false |
|
|
@ -185,7 +186,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
'xcMetaTablesExportDbToLocalFs' |
|
|
|
'xcMetaTablesExportDbToLocalFs' |
|
|
|
]) |
|
|
|
]) |
|
|
|
this.$toast.success('Successfully exported metadata').goAway(3000) |
|
|
|
// this.$toast.success('Successfully exported metadata').goAway(3000) |
|
|
|
|
|
|
|
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
} |
|
|
|
} |
|
|
@ -196,7 +198,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async exportMetaZip() { |
|
|
|
async exportMetaZip() { |
|
|
|
this.dialogShow = true |
|
|
|
this.dialogShow = true |
|
|
|
this.confirmMessage = 'Do you want to export metadata from meta tables?' |
|
|
|
// this.confirmMessage = 'Do you want to export metadata from meta tables?' |
|
|
|
|
|
|
|
this.confirmMessage = `${this.$t('msg.info.exportMetadata')}` |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
this.dialogShow = false |
|
|
|
this.dialogShow = false |
|
|
@ -222,7 +225,8 @@ export default { |
|
|
|
link.setAttribute('download', 'meta.zip') // or any other extension |
|
|
|
link.setAttribute('download', 'meta.zip') // or any other extension |
|
|
|
document.body.appendChild(link) |
|
|
|
document.body.appendChild(link) |
|
|
|
link.click() |
|
|
|
link.click() |
|
|
|
this.$toast.success('Successfully exported metadata').goAway(3000) |
|
|
|
// this.$toast.success('Successfully exported metadata').goAway(3000) |
|
|
|
|
|
|
|
this.$toast.success(`${this.$t('msg.toast.exportMetadata')}`).goAway(3000) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
} |
|
|
|
} |
|
|
@ -233,7 +237,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async resetMeta() { |
|
|
|
async resetMeta() { |
|
|
|
this.dialogShow = true |
|
|
|
this.dialogShow = true |
|
|
|
this.confirmMessage = 'Do you want to clear metadata from meta tables?' |
|
|
|
// this.confirmMessage = 'Do you want to clear metadata from meta tables?' |
|
|
|
|
|
|
|
this.confirmMessage = `${this.$t('msg.info.clearMetadata')}` |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
this.dialogShow = false |
|
|
|
this.dialogShow = false |
|
|
@ -247,7 +252,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
'xcMetaTablesReset' |
|
|
|
'xcMetaTablesReset' |
|
|
|
]) |
|
|
|
]) |
|
|
|
this.$toast.success('Metadata cleared successfully').goAway(3000) |
|
|
|
// this.$toast.success('Metadata cleared successfully').goAway(3000) |
|
|
|
|
|
|
|
this.$toast.success(`${this.$t('msg.toast.clearMetadata')}`).goAway(3000) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
} |
|
|
|
} |
|
|
@ -259,7 +265,8 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
async importMeta() { |
|
|
|
async importMeta() { |
|
|
|
this.dialogShow = true |
|
|
|
this.dialogShow = true |
|
|
|
this.confirmMessage = 'Do you want to import metadata from meta directory?' |
|
|
|
// this.confirmMessage = 'Do you want to import metadata from meta directory?' |
|
|
|
|
|
|
|
this.confirmMessage = `${this.$t('msg.info.importMetadata')}` |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
this.confirmAction = async(act) => { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
if (act === 'hideDialog') { |
|
|
|
this.dialogShow = false |
|
|
|
this.dialogShow = false |
|
|
@ -273,7 +280,8 @@ export default { |
|
|
|
'xcMetaTablesImportLocalFsToDb' |
|
|
|
'xcMetaTablesImportLocalFsToDb' |
|
|
|
]) |
|
|
|
]) |
|
|
|
|
|
|
|
|
|
|
|
this.$toast.success('Metadata imported successfully').goAway(3000) |
|
|
|
// this.$toast.success('Metadata imported successfully').goAway(3000) |
|
|
|
|
|
|
|
this.$toast.success(`${this.$t('msg.toast.importMetadata')}`).goAway(3000) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
} |
|
|
|
} |
|
|
@ -298,7 +306,8 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
zipFile |
|
|
|
zipFile |
|
|
|
]) |
|
|
|
]) |
|
|
|
this.$toast.success('Successfully imported metadata').goAway(3000) |
|
|
|
// this.$toast.success('Successfully imported metadata').goAway(3000) |
|
|
|
|
|
|
|
this.$toast.success(`${this.$t('msg.toast.importMetadata')}`).goAway(3000) |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
} |
|
|
|
} |
|
|
|