clay-server 2.11.0-beta.6 → 2.11.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/public/app.js CHANGED
@@ -1224,6 +1224,7 @@ import { initAdmin, checkAdminAccess } from './modules/admin.js';
1224
1224
  get myUserId() { return myUserId; },
1225
1225
  get projectOwnerId() { return currentProjectOwnerId; },
1226
1226
  openDm: function (userId) { openDm(userId); },
1227
+ openAddProjectModal: function () { openAddProjectModal(); },
1227
1228
  };
1228
1229
  initSidebar(sidebarCtx);
1229
1230
  initIconStrip(sidebarCtx);
@@ -2300,8 +2300,12 @@ export function initIconStrip(_ctx) {
2300
2300
  var addBtn = document.getElementById("icon-strip-add");
2301
2301
  if (addBtn) {
2302
2302
  addBtn.addEventListener("click", function () {
2303
- var modal = _ctx.$("add-project-modal");
2304
- if (modal) modal.classList.remove("hidden");
2303
+ if (_ctx.openAddProjectModal) {
2304
+ _ctx.openAddProjectModal();
2305
+ } else {
2306
+ var modal = _ctx.$("add-project-modal");
2307
+ if (modal) modal.classList.remove("hidden");
2308
+ }
2305
2309
  });
2306
2310
  addBtn.addEventListener("mouseenter", function () { showIconTooltip(addBtn, "Add project"); });
2307
2311
  addBtn.addEventListener("mouseleave", hideIconTooltip);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clay-server",
3
- "version": "2.11.0-beta.6",
3
+ "version": "2.11.0-beta.7",
4
4
  "description": "Web UI for Claude Code. Any device. Push notifications.",
5
5
  "bin": {
6
6
  "clay-server": "./bin/cli.js",