@zgfe/modules-event 0.1.7-heyh.0 → 0.1.7-heyh.1

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.
@@ -19,7 +19,6 @@ var TopBar = function TopBar(props) {
19
19
  var _useContext = useContext(EventContext),
20
20
  panelId = _useContext.panelId,
21
21
  afterEditTarget = _useContext.afterEditTarget,
22
- enableAddScene = _useContext.enableAddScene,
23
22
  loading = _useContext.loading,
24
23
  onLossWarning = _useContext.onLossWarning,
25
24
  showWarning = _useContext.showWarning,
@@ -109,10 +108,9 @@ var TopBar = function TopBar(props) {
109
108
  onOk: function onOk(data) {
110
109
  return _onOk('panel', data);
111
110
  }
112
- })), enableAddScene && /*#__PURE__*/React.createElement("div", {
111
+ })), authority[100048] && /*#__PURE__*/React.createElement("div", {
113
112
  className: "".concat(classPrefix, "-scene")
114
113
  }, /*#__PURE__*/React.createElement(Button, {
115
- disabled: !authority[100048],
116
114
  onClick: function onClick() {
117
115
  setShowScene(true);
118
116
  }
@@ -43,8 +43,7 @@ var defaultValue = {
43
43
  }
44
44
  },
45
45
  chosen_data: [],
46
- source: 'EVENT',
47
- enableAddScene: false
46
+ source: 'EVENT'
48
47
  };
49
48
  export default (function () {
50
49
  var _useState = useState(false),
@@ -149,7 +149,6 @@ var ModuleEvent = function ModuleEvent(props) {
149
149
  panelName: title,
150
150
  includeToday: props.includeToday,
151
151
  showWarning: props.showWarning,
152
- enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
153
152
  afterEditTarget: props.afterEditTarget,
154
153
  onUserDrill: props.onUserDrill,
155
154
  onLossWarning: props.onLossWarning,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "0.1.7-heyh.0",
3
+ "version": "0.1.7-heyh.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -49,7 +49,7 @@
49
49
  "react": "^16.12.0 || ^17.0.0",
50
50
  "yorkie": "^2.0.0"
51
51
  },
52
- "gitHead": "dd115ac77948bf3c8ef6bad69e2680d8b5cb2434",
52
+ "gitHead": "2224d6534470fa38ad93511642366d35d42f48c8",
53
53
  "dependencies": {
54
54
  "react-copy-to-clipboard": "^5.1.0",
55
55
  "react-highlight": "^0.15.0"