Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Make conditional icons consistent on templates UI

Kailash Nadh9fe78d624734
diff --git a/frontend/src/views/Templates.vue b/frontend/src/views/Templates.vue
index 9004ec29..284eeaf1 100644
--- a/frontend/src/views/Templates.vue
+++ b/frontend/src/views/Templates.vue
@@ -57,13 +57,20 @@
<b-icon icon="check-circle-outline" size="is-small" />
</b-tooltip>
</a>
- <a v-if="!props.row.isDefault"
- href="#" @click.prevent="$utils.confirm(null, () => deleteTemplate(props.row))"
+ <span v-else class="a has-text-grey-light">
+ <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">
<b-tooltip :label="$t('globals.buttons.delete')" type="is-dark">
<b-icon icon="trash-can-outline" size="is-small" />
</b-tooltip>
</a>
+ <span v-else class="a has-text-grey-light">
+ <b-icon icon="trash-can-outline" size="is-small" />
+ </span>
</div>
</b-table-column>
</template>