File tree Expand file tree Collapse file tree 7 files changed +40
-18
lines changed
openblocks-design/src/components Expand file tree Collapse file tree 7 files changed +40
-18
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ export const QueryConfigItemWrapper = styled.div<{ direction?: "row" | "column"
110
110
type TutorialStyle = "dropdownRight" | "begin" ;
111
111
112
112
const TutorialButtonWrapper = styled . div < { styleName : TutorialStyle } > `
113
+ height: 100%;
114
+ display: flex;
115
+ align-items: center;
113
116
${ ( props ) => {
114
117
if ( props . styleName === "dropdownRight" ) {
115
118
return css `
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ const DataResponderItemCompBase = new MultiCompBuilder(
53
53
label : trans ( "dataResponder.data" ) ,
54
54
tooltip : trans ( "dataResponder.dataTooltip" ) ,
55
55
placement : "bottom" ,
56
+ placeholder : "{{anyDependencies}}" ,
56
57
extraChildren : QueryTutorials . dataResponder && (
57
58
< DocLink style = { { marginTop : 8 } } href = { QueryTutorials . dataResponder } >
58
59
{ trans ( "dataResponder.docLink" ) }
@@ -133,6 +134,6 @@ export const DataChangeResponderListComp = bottomResListComp(
133
134
DataChangeResponderItemComp ,
134
135
DataResponderCompType ,
135
136
{
136
- data : JSON . stringify ( { } ) ,
137
+ data : "" ,
137
138
}
138
139
) ;
Original file line number Diff line number Diff line change @@ -56,11 +56,15 @@ export class ExecuteQueryAction extends ExecuteQueryTmpAction {
56
56
} ) )
57
57
. filter (
58
58
// Filter out the current query under query
59
- ( option ) =>
60
- placement !== "query" ||
61
- ( placement === "query" &&
62
- editorState . selectedBottomResType === BottomResTypeEnum . Query &&
63
- option . value !== editorState . selectedBottomResName )
59
+ ( option ) => {
60
+ if (
61
+ placement === "query" &&
62
+ editorState . selectedBottomResType === BottomResTypeEnum . Query
63
+ ) {
64
+ return option . value !== editorState . selectedBottomResName ;
65
+ }
66
+ return true ;
67
+ }
64
68
) || [ ] ;
65
69
66
70
// input queries
Original file line number Diff line number Diff line change @@ -139,7 +139,22 @@ export class EditorState {
139
139
const queryComInfoList = this . queryCompInfoList ( ) ;
140
140
const stateComInfoList = this . getTempStateCompInfoList ( ) ;
141
141
const transformerComInfoList = this . getTransformerCompInfoList ( ) ;
142
- return [ ...queryComInfoList , ...stateComInfoList , ...transformerComInfoList ] ;
142
+ const dataResponderInfoList = this . getDataResponderInfoList ( ) ;
143
+ return [
144
+ ...queryComInfoList ,
145
+ ...stateComInfoList ,
146
+ ...transformerComInfoList ,
147
+ ...dataResponderInfoList ,
148
+ ] ;
149
+ }
150
+
151
+ getDataResponderInfoList ( ) : Array < CompInfo > {
152
+ const listComp = this . getDataRespondersComp ( ) ;
153
+ const exposingInfo = listComp . nameAndExposingInfo ( ) ;
154
+ return listComp . getView ( ) . map ( ( item ) => {
155
+ const name = item . children . name . getView ( ) ;
156
+ return this . getCompInfo ( exposingInfo , name , BottomResTypeEnum . DateResponder ) ;
157
+ } ) ;
143
158
}
144
159
145
160
getTempStateCompInfoList ( ) : Array < CompInfo > {
Original file line number Diff line number Diff line change @@ -1496,8 +1496,7 @@ export const en = {
1496
1496
dataResponder : {
1497
1497
data : "Data" ,
1498
1498
dataDesc : "Data of current data responder" ,
1499
- dataTooltip :
1500
- "The dependent data that it's change will trigger the actions of current responder" ,
1499
+ dataTooltip : "When this data is changed, it will trigger subsequent actions." ,
1501
1500
docLink : "About the Data responder" ,
1502
1501
deleteMessage : "The data responder is deleted successfully. You can use {undoKey} to undo." ,
1503
1502
} ,
Original file line number Diff line number Diff line change @@ -42,6 +42,14 @@ export function SettingHome() {
42
42
key : SettingPageEnum . Organization ,
43
43
label : trans ( "settings.organization" ) ,
44
44
} ,
45
+ ...( isEE ( ) && currentOrgAdmin ( user ) && ( isSelfDomain ( config ) || isEnterpriseMode ( config ) )
46
+ ? [
47
+ {
48
+ key : SettingPageEnum . IdSource ,
49
+ label : trans ( "settings.idSource" ) ,
50
+ } ,
51
+ ]
52
+ : [ ] ) ,
45
53
...( showAuditLog ( config ) && currentOrgAdmin ( user )
46
54
? [
47
55
{
@@ -70,14 +78,6 @@ export function SettingHome() {
70
78
key : SettingPageEnum . Advanced ,
71
79
label : trans ( "settings.advanced" ) ,
72
80
} ,
73
- ...( isEE ( ) && currentOrgAdmin ( user ) && ( isSelfDomain ( config ) || isEnterpriseMode ( config ) )
74
- ? [
75
- {
76
- key : SettingPageEnum . IdSource ,
77
- label : trans ( "settings.idSource" ) ,
78
- } ,
79
- ]
80
- : [ ] ) ,
81
81
] ;
82
82
83
83
return (
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export function isSelfDomain(config?: SystemConfig) {
30
30
}
31
31
32
32
export function showAuditLog ( config ?: SystemConfig ) {
33
- return config ?. featureFlag . enableAuditLog ;
33
+ return config ?. featureFlag ? .enableAuditLog ;
34
34
}
35
35
36
36
export function useCloudHosting ( ) {
You can’t perform that action at this time.
0 commit comments