diff --git a/app/components/centrum/helpers.ts b/app/components/centrum/helpers.ts
index 8c48976ad..bd9480324 100644
--- a/app/components/centrum/helpers.ts
+++ b/app/components/centrum/helpers.ts
@@ -129,26 +129,29 @@ export function dispatchTimeToTextColor(
status: StatusDispatch = StatusDispatch.UNSPECIFIED,
maxTime: number = 600,
): string {
- const time = (Date.now() - toDate(date).getTime()) / 1000;
-
if (isStatusDispatchCompleted(status)) {
- return '';
+ return 'text-success-300';
}
+ // Get passed time in minutes
+ const time = (Date.now() - toDate(date).getTime()) / 1000;
+
const over = time / maxTime;
- if (over <= 0.15) {
- return '';
- } else if (over <= 0.2) {
- return 'text-orange-300';
- } else if (over <= 0.3) {
+ if (over >= 0.1) {
+ return 'text-yellow-100';
+ } else if (over >= 0.2) {
return 'text-yellow-300';
- } else if (over <= 0.5) {
- return 'text-orange-500';
- } else if (over <= 0.8) {
+ } else if (over >= 0.35) {
+ return 'text-orange-300';
+ } else if (over >= 0.55) {
+ return 'text-orange-400';
+ } else if (over >= 0.7) {
return 'text-red-400';
+ } else if (over > 0.85) {
+ return 'text-red-700 animate-bounce';
}
- return 'text-red-700 animate-bounce';
+ return '';
}
export function dispatchTimeToTextColorSidebar(
diff --git a/app/components/citizens/info/CitizenActions.vue b/app/components/citizens/info/CitizenActions.vue
index f8e6af318..79567dcda 100644
--- a/app/components/citizens/info/CitizenActions.vue
+++ b/app/components/citizens/info/CitizenActions.vue
@@ -228,7 +228,7 @@ if (props.registerShortcuts) {
-
+
{{ $t('components.citizens.CitizenInfoProfile.copy_profile_link') }}
diff --git a/app/components/rector/filestore/FileList.vue b/app/components/rector/filestore/FileList.vue
index 23af183da..1f9404a0c 100644
--- a/app/components/rector/filestore/FileList.vue
+++ b/app/components/rector/filestore/FileList.vue
@@ -75,6 +75,10 @@ const columns = [
label: t('common.action', 2),
sortable: false,
},
+ {
+ key: 'preview',
+ label: t('common.preview'),
+ },
{
key: 'name',
label: t('common.name'),
@@ -92,6 +96,8 @@ const columns = [
label: t('common.type'),
},
];
+
+const previewTypes = ['jpg', 'jpeg', 'png', 'webp'];
@@ -146,7 +152,13 @@ const columns = [
class="flex-1"
>
-
+
+
+
+ {{ file.name }}
+
+
+
+
+
+
{{ formatBytes(file.size) }}