Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Rex Dri
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
42
Issues
42
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rex Dri
Rex Dri
Commits
b4ba0cc0
Commit
b4ba0cc0
authored
Feb 28, 2019
by
Florent Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
History component adapted to setup.
parent
5b6f2861
Pipeline
#35680
failed with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
155 additions
and
78 deletions
+155
-78
frontend/src/components/university/shared/GenericModule.js
frontend/src/components/university/shared/GenericModule.js
+3
-3
frontend/src/components/university/shared/History.js
frontend/src/components/university/shared/History.js
+152
-75
No files found.
frontend/src/components/university/shared/GenericModule.js
View file @
b4ba0cc0
...
...
@@ -76,7 +76,7 @@ class GenericModule extends CustomComponentForAPI {
this
.
setState
({
alert
:
{
open
:
false
}
});
}
handle
CloseHistory
=
()
=>
{
handle
HistoryWasClosed
=
()
=>
{
this
.
setState
({
historyOpen
:
false
});
};
...
...
@@ -116,7 +116,7 @@ class GenericModule extends CustomComponentForAPI {
rawModelDataForEditor
:
rawModelData
,
forceSave
:
true
,
});
this
.
handle
CloseHistory
();
this
.
handle
HistoryWasClosed
();
this
.
handleOpenEditor
();
}
...
...
@@ -174,7 +174,7 @@ class GenericModule extends CustomComponentForAPI {
<
History
factory
=
{
this
}
open
=
{
this
.
state
.
historyOpen
}
handle
CloseHistory
=
{
this
.
handleCloseHistory
}
handle
HistoryWasClosed
=
{
this
.
handleHistoryWasClosed
}
handleRestoreVersion
=
{
this
.
handleRestoreVersion
}
/
>
<
PendingModeration
...
...
frontend/src/components/university/shared/History.js
View file @
b4ba0cc0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment