Skip to content

Commit

Permalink
webapp: declare emitted event in FormFooter component
Browse files Browse the repository at this point in the history
fixes an annoying warning (visible in the browser console):

[Vue warn]: Extraneous non-emits event listeners (reload) were passed to
component but could not be automatically inherited because component
renders fragment or text root nodes. If the listener is intended to be a
component custom event listener only, declare it using the "emits"
option.
  • Loading branch information
schlimmchen authored and tbnobody committed Nov 6, 2024
1 parent 74e3947 commit d088021
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/components/FormFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
<button type="submit" class="btn btn-primary">{{ $t('base.Save') }}</button>
</div>
</template>

<script lang="ts">
export default {
emits: ['reload'],
};
</script>

0 comments on commit d088021

Please sign in to comment.