Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cocktailpeanut committed Jul 11, 2024
1 parent 5eb2245 commit b6dbed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pinokio.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ module.exports = {
let installing = kernel.running(__dirname, "install.json")
let installed = await kernel.exists(__dirname, "app", "env")
if (installing) {
return [{ icon: "fa-solid fa-plug", text: "Installing...", href: "install.json" }]
return [{ default: true, icon: "fa-solid fa-plug", text: "Installing...", href: "install.json" }]
} else if (installed) {
let running = kernel.running(__dirname, "start.json")
if (running) {
let memory = kernel.memory.local[path.resolve(__dirname, "start.json")]
if (memory && memory.url) {
return [
{ icon: "fa-solid fa-rocket", text: "Web UI", href: memory.url },
{ default: true, icon: "fa-solid fa-rocket", text: "Web UI", href: memory.url },
{ icon: "fa-solid fa-terminal", text: "Terminal", href: "start.json" },
{ icon: "fa-solid fa-rotate", text: "Update", href: "update.json" },
]
} else {
return [
{ icon: "fa-solid fa-terminal", text: "Terminal", href: "start.json" },
{ default: true, icon: "fa-solid fa-terminal", text: "Terminal", href: "start.json" },
{ icon: "fa-solid fa-rotate", text: "Update", href: "update.json" },
]
}
Expand All @@ -67,7 +67,7 @@ module.exports = {
}
} else {
return [
{ icon: "fa-solid fa-plug", text: "Install", href: "install.json" },
{ default: true, icon: "fa-solid fa-plug", text: "Install", href: "install.json" },
{ icon: "fa-solid fa-rotate", text: "Update", href: "update.json" }
]
}
Expand Down

0 comments on commit b6dbed2

Please sign in to comment.