Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

[Solution] Left preview delete button does not work #66

Closed
zishuow opened this issue Jan 4, 2019 · 2 comments
Closed

[Solution] Left preview delete button does not work #66

zishuow opened this issue Jan 4, 2019 · 2 comments
Assignees
Labels

Comments

@zishuow
Copy link

zishuow commented Jan 4, 2019

Clicking triple dots at the right side of the specific data in left side-bar, then clicking 'delete'. In the pop-up window, the red 'delete' button does not work.

Raise error :
Uncaught TypeError: this.props.showLoading is not a function at e.value (dialog.js:58) at Object.i (ReactErrorUtils.js:24) at a (EventPluginUtils.js:83) at Object.s [as executeDispatchesInOrder] (EventPluginUtils.js:106) at p (EventPluginHub.js:41) at m (EventPluginHub.js:52) at Array.forEach (<anonymous>) at i (forEachAccumulated.js:22) at Object.processEventQueue (EventPluginHub.js:252) at i (ReactEventEmitterMixin.js:15)

@zishuow
Copy link
Author

zishuow commented Jan 10, 2019

I have found a solution for this
if anyone is interested, here is how:

file: /Curve-master/web/src/index/component/index.js
Line 149
showLoading={this.showLoading}
add in the following line
hideLoading={this.hideLoading}

Line 190
change to
<Dialog showLoading={this.showLoading} hideLoading={this.hideLoading} ref="dialog"></Dialog>

file: /Curve-master/web/src/index/component/sidebar.js

Line 151 - 153
change to

let nextDataName = null;
let nextUrl = '';
if (index< list.length-1){
      nextDataName = list[index + 1].name;
}
if (nextDataName) {
      nextUrl = '/home/' + nextDataName;
}   

Problem sloved~

@mistycheney
Copy link

Thanks for this fix. It works. Just note that these changes must be done before ./control.sh start.

@minorcong minorcong changed the title Left preview delete button does not work [Solution] Left preview delete button does not work Apr 22, 2019
@minorcong minorcong added the TODO label Apr 22, 2019
@minorcong minorcong pinned this issue Apr 22, 2019
minorcong added a commit to minorcong/Curve that referenced this issue May 13, 2019
minorcong added a commit to minorcong/Curve that referenced this issue May 13, 2019
minorcong added a commit that referenced this issue May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants