refactor(ui): minor improvements on buttons and actions

This commit is contained in:
liyasthomas
2021-07-28 22:23:43 +05:30
parent 1a4d3dc91a
commit 4f71e801d5
15 changed files with 80 additions and 86 deletions

View File

@@ -30,9 +30,8 @@
<ButtonPrimary
id="get"
name="get"
:icon="!isPollingSchema ? 'sync' : 'sync_disabled'"
:label="!isPollingSchema ? $t('connect') : $t('disconnect')"
class="rounded-l-none"
class="rounded-l-none w-28"
@click.native="onPollSchemaClick"
/>
</div>
@@ -1210,7 +1209,7 @@ export default defineComponent({
})
setTimeout(() => {
document.body.removeChild(a)
window.URL.revokeObjectURL(url)
URL.revokeObjectURL(url)
this.downloadResponseIcon = "save_alt"
}, 1000)
},
@@ -1229,7 +1228,7 @@ export default defineComponent({
})
setTimeout(() => {
document.body.removeChild(a)
window.URL.revokeObjectURL(url)
URL.revokeObjectURL(url)
this.downloadSchemaIcon = "save_alt"
}, 1000)
},