add seprate actions for dashboard tables

This commit is contained in:
yogesh_gohil
2019-11-17 16:36:30 +05:30
parent 810ff2af8f
commit 0711393bd1
6 changed files with 263 additions and 30 deletions

View File

@ -127,7 +127,7 @@
<a :class="['tab-link', {'a-active': filters.status === 'SENT'}]" href="#" >{{ $t('general.sent') }}</a>
</li>
<li class="tab" @click="getStatus('')">
<a :class="['tab-link', {'a-active': filters.status === '' || filters.status === null}]" href="#">{{ $t('general.all') }}</a>
<a :class="['tab-link', {'a-active': filters.status === '' || filters.status !== 'DRAFT' && filters.status !== 'SENT'}]" href="#">{{ $t('general.all') }}</a>
</li>
</ul>
<transition name="fade">
@ -426,7 +426,7 @@ export default {
if (response.data) {
this.filters.status = 'ACCEPTED'
this.$refs.table.refresh()
window.toastr['success'](this.$tc('estimates.confirm_mark_as_accepted'))
window.toastr['success'](this.$tc('estimates.marked_as_accepted_message'))
}
}
})