@voplus/morpho-workspace 6.0.36 → 6.0.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,10 @@ const WorkspaceMenu = (props) => {
13
13
  const asideContext = useAsideContentContext();
14
14
  const { user } = useApplicationContext();
15
15
  const store = useWorkspaceStore();
16
- const workspace = useWorkspace(props.id);
16
+ const workspace = useWorkspace(props.id, {
17
+ reload: (i) => !i.p,
18
+ includes: "permissions",
19
+ });
17
20
  return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), menus: React.createElement(React.Fragment, null,
18
21
  user.can("delete", workspace.p) && React.createElement(Delete, { action: onDelete }),
19
22
  user.can("disable", workspace.p) && (React.createElement(Button, { type: "link", onClick: () => onChangeStatus("Disabled"), className: classId + "-disabled" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/controls/WorkspaceMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACtF,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAE/D,MAAM,aAAa,GAAG,CAAC,KAA+D,EAAE,EAAE;IACzF,yCAAyC;IACzC,MAAM,OAAO,GAAG,gBAAgB,CAAC;IACjC,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AAE,YAAY,GAAI;gBAC9B,2CAAmB,CACX,CACT;YACD,oBAAC,MAAM,OAAG;YACV,oBAAC,KAAK,IAAC,KAAK,EAAE,CAAC,UAAU,EAAE,cAAc,CAAC,GAAI,CAC5C,GAEH,CACF,CAAC,CAAC;IAEH,+BAA+B;IAC/B,SAAS,cAAc,CAAC,MAAe;QACtC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC7E,mBAAmB;QACnB,IAAI,CAAC,CAAC,KAAK,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;YAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;IAClF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voplus/morpho-workspace",
3
- "version": "6.0.36",
3
+ "version": "6.0.37",
4
4
  "description": "morpho workspace module",
5
5
  "repository": {
6
6
  "type": "git",