Ticket descriptor bug

This commit is contained in:
joan 2018-04-10 07:39:43 +02:00
parent 13e221f98f
commit a82260d4fb
4 changed files with 27 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<vn-main-block> <vn-main-block>
<vn-horizontal> <vn-horizontal>
<vn-auto margin-medium-v class="left-block"> <vn-auto margin-medium-v class="left-block">
<vn-item-descriptor ticket="$ctrl.ticket"></vn-ticket-descriptor> <vn-ticket-descriptor ticket="$ctrl.ticket"></vn-ticket-descriptor>
<vn-left-menu></vn-left-menu> <vn-left-menu></vn-left-menu>
</vn-auto> </vn-auto>
<vn-one> <vn-one>

View File

@ -0,0 +1,16 @@
<vn-card margin-medium-v class="vn-descriptor">
<vn-horizontal class="header">
<a translate-attr="{title: 'Return to module index'}" ui-sref="ticket.list">
<vn-icon icon="chevron_left"></vn-icon>
</a>
<vn-icon icon="icon-ticket"></vn-icon>
<a translate-attr="{title: 'Preview'}" ui-sref="ticket.card.summary">
<vn-icon icon="desktop_windows"></vn-icon>
</a>
</vn-horizontal>
<vn-vertical>
<vn-auto pad-medium>
</vn-auto>
</vn-vertical>
</vn-card>

View File

@ -0,0 +1,8 @@
import ngModule from '../module';
ngModule.component('vnTicketDescriptor', {
template: require('./descriptor.html'),
bindings: {
ticket: '<'
}
});

View File

@ -3,7 +3,9 @@ export * from './module';
import './list/ticket-list'; import './list/ticket-list';
import './create/ticket-create'; import './create/ticket-create';
import './card/ticket-card'; import './card/ticket-card';
import './descriptor/descriptor';
import './summary/ticket-summary'; import './summary/ticket-summary';
import './data/data';
import './data/step-one/step-one'; import './data/step-one/step-one';
import './data/step-two/step-two'; import './data/step-two/step-two';
import './data/step-three/step-three'; import './data/step-three/step-three';