refactor(ui): minor ui improvements
This commit is contained in:
@@ -136,8 +136,7 @@ export default defineComponent({
|
||||
clearHistory() {
|
||||
if (this.page === "rest") clearRESTHistory()
|
||||
else clearGraphqlHistory()
|
||||
|
||||
this.$toast.error(this.$t("state.history_deleted").toString(), {
|
||||
this.$toast.success(this.$t("state.history_deleted").toString(), {
|
||||
icon: "delete",
|
||||
})
|
||||
},
|
||||
@@ -147,8 +146,7 @@ export default defineComponent({
|
||||
deleteHistory(entry: any) {
|
||||
if (this.page === "rest") deleteRESTHistoryEntry(entry)
|
||||
else deleteGraphqlHistoryEntry(entry)
|
||||
|
||||
this.$toast.error(this.$t("state.deleted").toString(), {
|
||||
this.$toast.success(this.$t("state.deleted").toString(), {
|
||||
icon: "delete",
|
||||
})
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="flex items-center group">
|
||||
<span
|
||||
class="cursor-pointer flex mx-2 w-12 justify-center items-center truncate"
|
||||
class="cursor-pointer flex px-2 w-16 justify-center items-center truncate"
|
||||
:class="entryStatus.className"
|
||||
data-testid="restore_history_entry"
|
||||
:title="duration"
|
||||
@@ -32,7 +32,7 @@
|
||||
icon="remove_circle_outline"
|
||||
color="red"
|
||||
:title="$t('action.remove')"
|
||||
class="group-hover:inline-flex hidden"
|
||||
class="hidden group-hover:inline-flex"
|
||||
data-testid="delete_history_entry"
|
||||
@click.native="$emit('delete-entry')"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user