kopia lustrzana https://codeberg.org/nmkj/audon
change title to the room name #26
rodzic
0888bf758e
commit
fac090e68f
|
@ -53,6 +53,7 @@ axios.interceptors.response.use(undefined, (error) => {
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
});
|
});
|
||||||
router.beforeEach(async (to) => {
|
router.beforeEach(async (to) => {
|
||||||
|
document.title = to.meta.title ?? "Audon";
|
||||||
const donStore = useMastodonStore();
|
const donStore = useMastodonStore();
|
||||||
if ((!to.meta.noauth || to.name === "login") && !donStore.authorized) {
|
if ((!to.meta.noauth || to.name === "login") && !donStore.authorized) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -13,12 +13,6 @@ export default {
|
||||||
query: "",
|
query: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
|
||||||
removeEventListener("beforeunload", (event) => {
|
|
||||||
event.preventDefault();
|
|
||||||
return (event.returnValue = "");
|
|
||||||
});
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async onLogout() {
|
async onLogout() {
|
||||||
// if (!confirm(this.$t("logoutConfirm"))) return;
|
// if (!confirm(this.$t("logoutConfirm"))) return;
|
||||||
|
|
|
@ -203,6 +203,11 @@ export default {
|
||||||
setInterval(this.refreshRemoteMuteStatus, 100);
|
setInterval(this.refreshRemoteMuteStatus, 100);
|
||||||
setInterval(this.refreshTimeElapsed, 1000);
|
setInterval(this.refreshTimeElapsed, 1000);
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
"roomInfo.title"(newValue) {
|
||||||
|
document.title = `Audon: ${newValue}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
iamMuted() {
|
iamMuted() {
|
||||||
const myAudonID = this.donStore.oauth.audon?.audon_id;
|
const myAudonID = this.donStore.oauth.audon?.audon_id;
|
||||||
|
|
Ładowanie…
Reference in New Issue