goblin-desktop 4.0.7 → 4.0.9
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/package.json
CHANGED
|
@@ -127,13 +127,13 @@ class DesktopScale extends Widget {
|
|
|
127
127
|
);
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
renderButton() {
|
|
130
|
+
renderButton({onClick}) {
|
|
131
131
|
return (
|
|
132
132
|
<Button
|
|
133
133
|
glyph="solid/binoculars"
|
|
134
134
|
kind="main-tab-right"
|
|
135
135
|
tooltip={T('Choix du zoom')}
|
|
136
|
-
onClick={
|
|
136
|
+
onClick={onClick}
|
|
137
137
|
/>
|
|
138
138
|
);
|
|
139
139
|
}
|
|
@@ -142,10 +142,10 @@ class DesktopScale extends Widget {
|
|
|
142
142
|
if (!window.zoomable) {
|
|
143
143
|
return null;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
const renderButton = this.props.renderButton || this.renderButton;
|
|
146
146
|
return (
|
|
147
147
|
<div className={this.styles.classNames.desktopScale}>
|
|
148
|
-
{this.
|
|
148
|
+
{renderButton({onClick: this.onToggleDialog})}
|
|
149
149
|
{this.renderDialog()}
|
|
150
150
|
</div>
|
|
151
151
|
);
|
|
@@ -233,7 +233,7 @@ class EntityView extends Widget {
|
|
|
233
233
|
direction: sorting.direction,
|
|
234
234
|
});
|
|
235
235
|
|
|
236
|
-
const cell = columns
|
|
236
|
+
const cell = columns.get(index - 1);
|
|
237
237
|
const path = ListHelpers.getColumnPath(cell);
|
|
238
238
|
|
|
239
239
|
this.doFor(this.props.id, 'sort-list', {
|