mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
feat: journal dispatchers filtering by sc. hash
This commit is contained in:
@@ -267,7 +267,10 @@ export default defineComponent({
|
||||
const timestampTo = timestampFrom ? timestampFrom + 86400000 : undefined;
|
||||
|
||||
if (dispatcher) queries.push(`dispatcherName=${dispatcher}`);
|
||||
if (station) queries.push(`stationName=${station}`);
|
||||
|
||||
if (station.startsWith("#")) queries.push(`stationHash=${station.slice(1)}`);
|
||||
else if (station.length > 0) queries.push(`stationName=${station}`);
|
||||
|
||||
if (timestampFrom && timestampTo)
|
||||
queries.push(`timestampFrom=${timestampFrom}`, `timestampTo=${timestampTo}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user