mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
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:
commit
00f365cb03
7 changed files with 15 additions and 19 deletions
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue