added data-viewer
gitea/salix/dev This commit has test failures Details

This commit is contained in:
Joan Sanchez 2019-10-10 09:26:44 +02:00
parent 71baa4924c
commit 756acd41ef
2 changed files with 111 additions and 112 deletions

View File

@ -9,7 +9,9 @@
<section><vn-icon icon="add_circle"></vn-icon></section>
<section translate>Drag & Drop files here...</section>
</section>
<vn-data-viewer
model="model"
class="vn-w-lg">
<vn-horizontal class="photo-list">
<section class="photo" ng-repeat="photo in $ctrl.photos">
<section class="image mdl-shadow--2dp" on-error-src
@ -25,11 +27,8 @@
</button>
</section>
</section>
<vn-empty-rows ng-if="$ctrl.photos.length == 0">
<span translate>Drag & Drop files here...</span>
</vn-empty-rows>
</vn-horizontal>
<vn-pagination model="model"></vn-pagination>
</vn-data-viewer>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>

View File

@ -4,11 +4,13 @@
link="{ticketFk: $ctrl.$stateParams.id}"
filter="::$ctrl.filter"
limit="20"
data="$ctrl.ticketDms">
data="$ctrl.ticketDms"
auto-load="true">
</vn-crud-model>
<vn-vertical>
<vn-card class="vn-pa-lg">
<vn-vertical>
<vn-data-viewer
model="model"
class="vn-w-lg">
<vn-card>
<vn-table model="model">
<vn-thead>
<vn-tr>
@ -95,10 +97,8 @@
</vn-tr>
</vn-tbody>
</vn-table>
</vn-vertical>
<vn-pagination model="model"></vn-pagination>
</vn-card>
</vn-vertical>
</vn-data-viewer>
<vn-worker-descriptor-popover
vn-id="workerDescriptor">
</vn-worker-descriptor-popover>