Make conditional icons consistent on templates UI
This commit is contained in:
parent
ed57ecca99
commit
9fe78d6247
|
@ -57,13 +57,20 @@
|
||||||
<b-icon icon="check-circle-outline" size="is-small" />
|
<b-icon icon="check-circle-outline" size="is-small" />
|
||||||
</b-tooltip>
|
</b-tooltip>
|
||||||
</a>
|
</a>
|
||||||
<a v-if="!props.row.isDefault"
|
<span v-else class="a has-text-grey-light">
|
||||||
href="#" @click.prevent="$utils.confirm(null, () => deleteTemplate(props.row))"
|
<b-icon icon="check-circle-outline" size="is-small" />
|
||||||
|
</span>
|
||||||
|
|
||||||
|
<a v-if="!props.row.isDefault" href="#"
|
||||||
|
@click.prevent="$utils.confirm(null, () => deleteTemplate(props.row))"
|
||||||
data-cy="btn-delete">
|
data-cy="btn-delete">
|
||||||
<b-tooltip :label="$t('globals.buttons.delete')" type="is-dark">
|
<b-tooltip :label="$t('globals.buttons.delete')" type="is-dark">
|
||||||
<b-icon icon="trash-can-outline" size="is-small" />
|
<b-icon icon="trash-can-outline" size="is-small" />
|
||||||
</b-tooltip>
|
</b-tooltip>
|
||||||
</a>
|
</a>
|
||||||
|
<span v-else class="a has-text-grey-light">
|
||||||
|
<b-icon icon="trash-can-outline" size="is-small" />
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</b-table-column>
|
</b-table-column>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue