Add router link to Status component

This commit is contained in:
Angelina Filippova 2020-05-02 16:35:13 +03:00
parent cfa85c1e04
commit 5fe5b38c13

View file

@ -1,5 +1,5 @@
<template> <template>
<div> <router-link :to="{ name: 'StatusShow', params: { id: status.id }}">
<el-card v-if="!status.deleted" class="status-card"> <el-card v-if="!status.deleted" class="status-card">
<div slot="header"> <div slot="header">
<div class="status-header"> <div class="status-header">
@ -15,7 +15,6 @@
<h3 class="status-account-name deactivated"> (deactivated)</h3> <h3 class="status-account-name deactivated"> (deactivated)</h3>
</span> </span>
</div> </div>
</div> </div>
<div class="status-actions"> <div class="status-actions">
<el-tag v-if="status.sensitive" type="warning" size="large">{{ $t('reports.sensitive') }}</el-tag> <el-tag v-if="status.sensitive" type="warning" size="large">{{ $t('reports.sensitive') }}</el-tag>
@ -116,7 +115,7 @@
{{ parseTimestamp(status.created_at) }} {{ parseTimestamp(status.created_at) }}
</a> </a>
</el-card> </el-card>
</div> </router-link>
</template> </template>
<script> <script>