lang: window title updated
This commit is contained in:
@ -2,8 +2,8 @@ import { client, navigateTo } from "../../index.js";
|
||||
import AbstractRedirectView from "./AbstractRedirectView.js";
|
||||
|
||||
export default class extends AbstractRedirectView{
|
||||
constructor(params, title, uri = "/login") {
|
||||
super(params, title, uri);
|
||||
constructor(params, titleKey, uri = "/login") {
|
||||
super(params, titleKey, uri);
|
||||
}
|
||||
|
||||
async redirect()
|
||||
|
@ -2,8 +2,8 @@ import { client, navigateTo } from "../../index.js";
|
||||
import AbstractRedirectView from "./AbstractRedirectView.js";
|
||||
|
||||
export default class extends AbstractRedirectView{
|
||||
constructor(params, title, uri = "/home") {
|
||||
super(params, title, uri);
|
||||
constructor(params, titleKey, uri = "/home") {
|
||||
super(params, titleKey, uri);
|
||||
}
|
||||
|
||||
async redirect()
|
||||
|
@ -2,9 +2,9 @@ import { navigateTo } from "../../index.js";
|
||||
import AbstractView from "./AbstractView.js";
|
||||
|
||||
export default class extends AbstractView{
|
||||
constructor(params, title, uri)
|
||||
constructor(params, titleKey, uri)
|
||||
{
|
||||
super(params, title);
|
||||
super(params, titleKey);
|
||||
this.redirect_url = uri;
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
import {lang} from '../../index.js'
|
||||
|
||||
export default class {
|
||||
constructor(params, title) {
|
||||
constructor(params, titleKey) {
|
||||
this.params = params;
|
||||
this.title = title;
|
||||
this.titleKey = titleKey;
|
||||
}
|
||||
|
||||
async postInit() {
|
||||
@ -11,7 +13,7 @@ export default class {
|
||||
}
|
||||
|
||||
setTitle() {
|
||||
document.title = this.title;
|
||||
document.title = lang.get(this.titleKey, 'Bozo Pong');
|
||||
}
|
||||
|
||||
async getHtml() {
|
||||
|
Reference in New Issue
Block a user