fix expiring date

fix progress bar value
This commit is contained in:
Paolo Arena
2019-03-15 02:36:44 +01:00
parent 8dc26269cd
commit 919838549d
6 changed files with 22 additions and 12 deletions

View File

@@ -219,6 +219,10 @@ $heightdescr: 20px;
.data-item { .data-item {
max-width: 78px; max-width: 78px;
@media (max-width: 600px) {
max-width: 22px;
}
//min-width: 100px; //min-width: 100px;
//display: flex; //display: flex;
//visibility: initial; //visibility: initial;
@@ -231,15 +235,18 @@ $heightdescr: 20px;
padding-left: 2px; padding-left: 2px;
padding-right: 0px; padding-right: 0px;
@media (max-width: 600px) {
display: none;
}
//height: $heightBtn; //height: $heightBtn;
//line-height: $heightBtn; //line-height: $heightBtn;
} }
.data_string {
@media (max-width: 600px) {
display: none;
}
}
.data-item .q-input-target{ .data-item .q-input-target{
color:red !important; color:red !important;
} }

View File

@@ -36,7 +36,8 @@
<div v-if="isTodo() && (itemtodo.progress > 0) " class="flex-item progress-item shadow-1"> <div v-if="isTodo() && (itemtodo.progress > 0) " class="flex-item progress-item shadow-1">
<q-linear-progress <q-linear-progress
stripe stripe
:percentage="percentageProgress" rounded
:value="percentageProgress / 100"
class="progrbar-item" class="progrbar-item"
:color="colProgress" :color="colProgress"
> >
@@ -55,8 +56,8 @@
<div v-if="itemtodo.enableExpiring" :class="classExpiring"> <div v-if="itemtodo.enableExpiring" :class="classExpiring">
{{getstrDate(itemtodo.expiring_at)}} <span class="data_string">{{getstrDate(itemtodo.expiring_at)}}</span>
<q-icon name="event" class="cursor-pointer"> <q-icon name="event" class="cursor-pointer" style="padding: 2px;">
<q-popup-proxy> <q-popup-proxy>
<q-date v-model="itemtodo.expiring_at" today-btn/> <q-date v-model="itemtodo.expiring_at" today-btn/>
</q-popup-proxy> </q-popup-proxy>

View File

@@ -340,9 +340,9 @@ export default class Todo extends Vue {
.then((data) => { .then((data) => {
console.log('data', data) console.log('data', data)
if (data !== null) { // if (data !== null) {
tools.showNotif(this.$q, data) // tools.showNotif(this.$q, data)
} // }
// empty the field // empty the field
if (atfirst) { if (atfirst) {

View File

@@ -73,7 +73,7 @@ p {
} }
.landing__arrow { .landing__arrow {
bottom: 8px; bottom: 25px;
opacity: .4 opacity: .4
} }

View File

@@ -695,7 +695,7 @@ namespace Actions {
} }
// 3) send to the Server // 3) send to the Server
await saveItemToSyncAndDb(tools.DB.TABLE_SYNC_TODOS, 'POST', objtodo) return await saveItemToSyncAndDb(tools.DB.TABLE_SYNC_TODOS, 'POST', objtodo)
.then((ris) => { .then((ris) => {
// Check if need to be moved... // Check if need to be moved...
const indelem = getIndexById(objtodo.category, objtodo._id) const indelem = getIndexById(objtodo.category, objtodo._id)

View File

@@ -16,6 +16,7 @@
:error="$v.signup.email.$error" :error="$v.signup.email.$error"
:error-message="errorMsg('email', $v.signup.email)" :error-message="errorMsg('email', $v.signup.email)"
bottom-slots bottom-slots
debounce="1000"
:label="$t('reg.email')"> :label="$t('reg.email')">
<template v-slot:prepend> <template v-slot:prepend>
@@ -30,6 +31,7 @@
@blur="$v.signup.username.$touch" @blur="$v.signup.username.$touch"
:error="$v.signup.username.$error" :error="$v.signup.username.$error"
bottom-slots bottom-slots
debounce="1000"
:error-message="errorMsg('username', $v.signup.username)" :error-message="errorMsg('username', $v.signup.username)"
:label="$t('reg.username')"> :label="$t('reg.username')">