mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-30 02:06:49 +00:00
refactor(gui): linting
Signed-off-by: Pranav C <61551451+pranavxc@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
<template>
|
||||
|
||||
<v-container fluid style="height: 100%" class="py-0">
|
||||
<v-row class="justify-center align-center">
|
||||
<v-col class=" text-center pt-5">
|
||||
@@ -16,29 +15,29 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "grpcClient",
|
||||
name: 'GrpcClient',
|
||||
data: () => ({
|
||||
loading: false
|
||||
}),
|
||||
methods: {
|
||||
async download() {
|
||||
this.loading = true;
|
||||
let data;
|
||||
async download () {
|
||||
this.loading = true
|
||||
let data
|
||||
try {
|
||||
data = await this.$store.dispatch('sqlMgr/ActSqlOp', [null, 'grpcProtoDownloadZip', {}, null, {
|
||||
responseType: 'blob'
|
||||
}]);
|
||||
const url = window.URL.createObjectURL(new Blob([data], {type: 'application/zip'}));
|
||||
const link = document.createElement('a');
|
||||
link.href = url;
|
||||
link.setAttribute('download', 'proto.zip'); //or any other extension
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
this.$toast.success('Successfully exported metadata').goAway(3000);
|
||||
}])
|
||||
const url = window.URL.createObjectURL(new Blob([data], { type: 'application/zip' }))
|
||||
const link = document.createElement('a')
|
||||
link.href = url
|
||||
link.setAttribute('download', 'proto.zip') // or any other extension
|
||||
document.body.appendChild(link)
|
||||
link.click()
|
||||
this.$toast.success('Successfully exported metadata').goAway(3000)
|
||||
} catch (e) {
|
||||
this.$toast.error('Some internal error occurred').goAway(3000);
|
||||
this.$toast.error('Some internal error occurred').goAway(3000)
|
||||
}
|
||||
this.loading = false;
|
||||
this.loading = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user