Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to go offline #4

Open
webard opened this issue Mar 29, 2024 · 0 comments
Open

Possibility to go offline #4

webard opened this issue Mar 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@webard
Copy link
Owner

webard commented Mar 29, 2024

Nova.booting((app) => {
const mountPhoneCallHeaderIcon = () => {
let appHeader = document.getElementsByTagName("header");
if (appHeader.length > 0) {
let component = defineComponent({
extends: PhoneCallHeaderIcon,
data() {
return { test: true };
},
});
let div = document.createElement("div");
// lang.className = 'mr-3';
let newApp = createApp(component);
newApp.component(
"Icon",
app._context.components.HeroiconsOutlinePhoneOutgoing,
);
newApp.mount(div);
appHeader[0].lastChild.lastChild.insertBefore(
div,
appHeader[0].lastChild.lastChild.firstChild,
);
}
};

Here is component that appends Icon to Nova header. I think it is good place to make "go offline" functionality.

@webard webard added the enhancement New feature or request label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant