fix sortowania statusów dr; linting

This commit is contained in:
2023-11-17 16:52:53 +01:00
parent 451d90f854
commit 6ef04f0dbd
6 changed files with 33 additions and 3 deletions
+6 -1
View File
@@ -23,6 +23,9 @@ export default defineComponent({
dispatcherStatus: {
type: Number as PropType<Status.ActiveDispatcher | number>
},
dispatcherTimestamp: {
type: Number as PropType<number | null>
},
isOnline: {
type: Boolean
}
@@ -59,7 +62,9 @@ export default defineComponent({
return 'unknown';
default:
if (this.dispatcherStatus >= Date.now() + 25500000) return 'no-limit';
if (this.dispatcherTimestamp != null && this.dispatcherStatus >= Date.now() + 25500000)
return 'no-limit';
return 'online';
}
}