Skip to content

Commit

Permalink
💄 add tooltip for duration == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 8, 2022
1 parent a798bc8 commit ccb1633
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/annotation/ActionTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
</template>
<template v-slot:body="props">
<q-tr :class="{ 'bg-warning': props.row.end - props.row.start <= 0}">
<q-tooltip anchor="top middle" v-if="props.row.end - props.row.start <= 0">Duration should be greater than 0.</q-tooltip>
<q-td auto-width>
<q-input
v-model.number="props.row.start"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/configuration/Configuration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const configurationStore = useConfigurationStore()
const handleLoad = () => {
utils.confirm(
'Are you sure to load? This would override the configuration!'
).onOk(() => { // TODO
).onOk(() => {
utils.importFile().then(file => {
try {
configurationStore.importConfig(JSON.parse(file))
Expand Down

0 comments on commit ccb1633

Please sign in to comment.