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

View File

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

View File

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

View File

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

View File

@@ -695,7 +695,7 @@ namespace Actions {
}
// 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) => {
// Check if need to be moved...
const indelem = getIndexById(objtodo.category, objtodo._id)

View File

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