[Vuejs]-Pug render 2 templates in the same row

0๐Ÿ‘

โœ…

I actually figured this with the help of a colleague
Adding a v-flex.compact above the 2 templates worked, as below:

    v-flex.compact
          p(id='correspondence-comment-content' v-html='displayContent')
          span
  v-flex.compact
        template(v-if='correspondence.createdBy === currentUser && isTicketEditable')
            a(@click='openEditDialog')
              | Edit
        template
          span
            v-tooltip(top)
              template(#activator='{ on: ontooltip }' #prepend)
                v-btn.float-right(
                  id='copyButton'
                  ref='copyBtn'                    
                  x-small
                  v-on='{...ontooltip}'
                  @click='copyContent'
                )
                  v-icon(small color='grey darken-2' right) $vuetify.icons.faCopy
              span Copy content 

Leave a comment