Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-webui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-webui
Commits
421257be
Commit
421257be
authored
3 years ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'dev' into f-wysiwyg-source-saving
parents
76ca5438
8be8ead5
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!68
DOC: update CHANGELOG
,
!62
FIX: Save WYSIWYG saving in source mode
Pipeline
#18096
failed
3 years ago
Stage: linting
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
src/core/js/webcaosdb.js
+18
-1
18 additions, 1 deletion
src/core/js/webcaosdb.js
with
21 additions
and
1 deletion
CHANGELOG.md
+
3
−
0
View file @
421257be
...
...
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added (for new features, dependecies etc.)
*
A
`#version_history`
URI fragment which can be used to directly open the modal
with the full version history of the first entity on the page.
### Changed (for changes in existing functionality)
### Deprecated (for soon-to-be removed features)
...
...
This diff is collapsed.
Click to expand it.
src/core/js/webcaosdb.js
+
18
−
1
View file @
421257be
...
...
@@ -990,6 +990,11 @@ var version_history = new function () {
const
logger
=
log
.
getLogger
(
"
version_history
"
);
this
.
logger
=
logger
;
this
.
_has_version_fragment
=
function
()
{
const
fragment
=
window
.
location
.
hash
.
substr
(
1
);
return
fragment
===
'
version_history
'
;
}
this
.
_get
=
connection
.
get
;
/**
* Retrieve the version history of an entity and return a table with the
...
...
@@ -1161,6 +1166,18 @@ var version_history = new function () {
this
.
init_load_history_buttons
();
this
.
init_export_history_buttons
();
this
.
init_restore_version_buttons
();
// check for the version_history fragment and open the modal if present.
if
(
this
.
_has_version_fragment
())
{
const
first_entity
=
$
(
"
.caosdb-entity-panel
"
)[
0
];
if
(
first_entity
&&
hasEntityPermission
(
first_entity
,
"
RETRIEVE:HISTORY
"
))
{
logger
.
debug
(
"
Showing full version modal for first entity
"
);
const
version_button
=
$
(
first_entity
).
find
(
"
.caosdb-f-entity-version-button
"
);
version_button
.
click
();
const
full_version_history_button
=
$
(
first_entity
).
find
(
"
.caosdb-f-entity-version-load-history-btn
"
);
full_version_history_button
.
click
();
}
}
}
}
...
...
@@ -2000,4 +2017,4 @@ class _CaosDBModules {
var
caosdb_modules
=
new
_CaosDBModules
()
$
(
document
).
ready
(
initOnDocumentReady
);
\ No newline at end of file
$
(
document
).
ready
(
initOnDocumentReady
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment