2023-11-29 13:55:44 -05:00
|
|
|
import { client, navigateTo } from "../index.js";
|
|
|
|
import AbstractRedirectView from "./AbstractRedirectView.js";
|
|
|
|
|
|
|
|
export default class extends AbstractRedirectView{
|
2023-11-30 07:05:46 -05:00
|
|
|
constructor(params, title, url) {
|
|
|
|
super(params, title, url);
|
2023-11-29 13:55:44 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
async redirect()
|
|
|
|
{
|
|
|
|
if (await client.isAuthentificate() === false)
|
|
|
|
return 0;
|
|
|
|
navigateTo(this.redirect_url);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|