Info o ilości osób w kolejce
This commit is contained in:
parent
c7a9ce6364
commit
630a7fd1ce
|
@ -68,12 +68,19 @@ export default class ScreenshotRequest {
|
||||||
current_action: string;
|
current_action: string;
|
||||||
preview: string;
|
preview: string;
|
||||||
}> {
|
}> {
|
||||||
|
const jobs_ahead = this.getJobsAhead();
|
||||||
return {
|
return {
|
||||||
url: this.url,
|
url: this.url,
|
||||||
current_action:
|
current_action:
|
||||||
this.status == "finished" ? "Zakończono!" : this.current_action,
|
this.status == "finished"
|
||||||
|
? "Zakończono!"
|
||||||
|
: this.status == "waiting"
|
||||||
|
? `Oczekiwanie w kolejce. Przed Tobą jest ${jobs_ahead} ${
|
||||||
|
jobs_ahead === 1 ? "osoba" : "osób"
|
||||||
|
} w kolejce...`
|
||||||
|
: this.current_action,
|
||||||
domains: this.domains,
|
domains: this.domains,
|
||||||
jobs_ahead: this.getJobsAhead(),
|
jobs_ahead,
|
||||||
id: this.id,
|
id: this.id,
|
||||||
status: this.status,
|
status: this.status,
|
||||||
output: this.output,
|
output: this.output,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user