Skip to content

Commit

Permalink
Fix actions popup
Browse files Browse the repository at this point in the history
  • Loading branch information
pijng committed Jun 3, 2024
1 parent 024b701 commit b0e1dfe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 1.10.6
version: 1.10.7
externalDocs:
description: Find out more about spec
url: 'https://moonlogs.pages.dev'
Expand Down
2 changes: 2 additions & 0 deletions web/src/shared/ui/popup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export const Popup = ({ text, icon, content }: { text?: string | Store<string>;
target: $visible,
});

$visible.watch(console.log);

h("div", () => {
spec({ classList: ["relative"] });
Button({
Expand Down
4 changes: 2 additions & 2 deletions web/src/widgets/group-actions-list/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { actionModel } from "@/entities/action";
import { logModel } from "@/entities/log";
import { LogGroupAction } from "@/features";
import { Log } from "@/shared/api";
import { CaretDownIcon, Popup } from "@/shared/ui";
import { Popup } from "@/shared/ui";
import { Store, createStore } from "effector";
import { h, list, spec, variant } from "forest";

Expand All @@ -26,7 +26,7 @@ export const GroupActionsList = ({
cases: {
collapsed: () => {
Popup({
icon: CaretDownIcon,
text: "•••",
content: () => {
list(actionModel.$actions, ({ store: action }) => {
h("li", () => {
Expand Down

0 comments on commit b0e1dfe

Please sign in to comment.