Merge pull request #6723 from aignatov-bio/ai-sci-add-reminder-to-date-fields

Add datetime reminder to item card
This commit is contained in:
aignatov-bio 2023-11-28 09:59:55 +01:00 committed by GitHub
commit 00f365cb03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 19 deletions

View file

@ -1,13 +1,12 @@
<template>
<div class="flex flex-col gap-2">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="date"
:range="true"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,13 +1,11 @@
<template>
<div class="flex flex-col gap-2">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="datetime"
:range="true"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,12 +1,10 @@
<template>
<div class="flex flex-col gap-2">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="datetime"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,12 +1,10 @@
<template>
<div class="flex flex-col gap2">
<div class="font-inter text-sm font-semibold leading-5 truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="date"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,13 +1,11 @@
<template>
<div class="flex flex-col gap-2">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="time"
:range="true"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,12 +1,10 @@
<template>
<div class="flex flex-col gap-2">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<DateTimeComponent
mode="time"
:colVal="colVal"
:colId="colId"
:colName="colName"
:updatePath="updatePath"
:canEdit="canEdit"
/>

View file

@ -1,4 +1,10 @@
<template>
<div class="flex gap-1">
<div class="text-sm font-bold truncate" :title="colName">
{{ colName }}
</div>
<div v-if="colVal.reminder" class="bg-sn-alert-passion w-1.5 h-1.5 rounded" :title="colVal.reminder_text"></div>
</div>
<div class="flex flex-col gap-2">
<template v-if="!canEdit">
<span v-if="range">
@ -57,7 +63,8 @@
colVal: { type: Object, default: {} },
colId: Number,
updatePath: String,
canEdit: { type: Boolean, default: false }
canEdit: { type: Boolean, default: false },
colName: String,
},
created() {
if (this.range) {