|
@@ -18,18 +18,22 @@ export default class AdminHomeContainer extends Container {
|
|
|
|
|
|
|
|
this.appContainer = appContainer;
|
|
this.appContainer = appContainer;
|
|
|
|
|
|
|
|
|
|
+ this.copyStateValues = {
|
|
|
|
|
+ DEFAULT: 'default',
|
|
|
|
|
+ DONE: 'done',
|
|
|
|
|
+ };
|
|
|
|
|
+ this.timer = null;
|
|
|
|
|
+
|
|
|
this.state = {
|
|
this.state = {
|
|
|
retrieveError: null,
|
|
retrieveError: null,
|
|
|
growiVersion: '',
|
|
growiVersion: '',
|
|
|
nodeVersion: '',
|
|
nodeVersion: '',
|
|
|
npmVersion: '',
|
|
npmVersion: '',
|
|
|
yarnVersion: '',
|
|
yarnVersion: '',
|
|
|
- copyState: 'default',
|
|
|
|
|
|
|
+ copyState: this.copyStateValues.DEFAULT,
|
|
|
installedPlugins: [],
|
|
installedPlugins: [],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- this.timer = null;
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -73,13 +77,13 @@ export default class AdminHomeContainer extends Container {
|
|
|
onCopyBugReport() {
|
|
onCopyBugReport() {
|
|
|
this.setState(prevState => ({
|
|
this.setState(prevState => ({
|
|
|
...prevState,
|
|
...prevState,
|
|
|
- copyState: 'done',
|
|
|
|
|
|
|
+ copyState: this.copyStateValues.DONE,
|
|
|
}));
|
|
}));
|
|
|
|
|
|
|
|
this.timer = setTimeout(() => {
|
|
this.timer = setTimeout(() => {
|
|
|
this.setState(prevState => ({
|
|
this.setState(prevState => ({
|
|
|
...prevState,
|
|
...prevState,
|
|
|
- copyState: 'default',
|
|
|
|
|
|
|
+ copyState: this.copyStateValues.DEFAULT,
|
|
|
}));
|
|
}));
|
|
|
}, 500);
|
|
}, 500);
|
|
|
}
|
|
}
|