web/satellite: remove details button on info bar for Dashboard page
WHAT: hide details button if user is already on project dashboard page WHY: confusing user Change-Id: Ib363e0e1a040ca529de7ec8f1b82ce54943890c9
This commit is contained in:
parent
ebe5813964
commit
546e2d2e81
@ -8,7 +8,7 @@
|
||||
<span class="info-bar__info-area__first-description">{{ firstDescription }}</span>
|
||||
<b class="info-bar__info-area__second-value">{{ secondValue }}</b>
|
||||
<span class="info-bar__info-area__second-description">{{ secondDescription }}</span>
|
||||
<router-link v-if="path" class="info-bar__info-area__button" :to="path">Details</router-link>
|
||||
<router-link v-if="path && !isProjectDashboard" class="info-bar__info-area__button" :to="path">Details</router-link>
|
||||
</div>
|
||||
<a
|
||||
class="info-bar__link"
|
||||
@ -25,6 +25,8 @@
|
||||
<script lang="ts">
|
||||
import { Component, Prop, Vue } from 'vue-property-decorator';
|
||||
|
||||
import { RouteConfig } from '@/router';
|
||||
|
||||
/**
|
||||
* VBanner is custom banner on top of all pages in Dashboard
|
||||
*/
|
||||
@ -46,6 +48,13 @@ export default class VInfoBar extends Vue {
|
||||
private readonly path: string;
|
||||
@Prop({default: false})
|
||||
private readonly isBlue: boolean;
|
||||
|
||||
/**
|
||||
* Indicates if current route is project dashboard.
|
||||
*/
|
||||
public get isProjectDashboard(): boolean {
|
||||
return this.$route.name === RouteConfig.ProjectDashboard.name;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user