Skip to content

Commit

Permalink
Merge branch 'fixesDatasetTabWithoutData-547' into 'main'
Browse files Browse the repository at this point in the history
Fixes display error in dataset tab

See merge request softwares-pkp/plugins_ojs/dataverse!123
  • Loading branch information
thiagolepidus committed Jun 30, 2023
2 parents 091cbe6 + c278f20 commit 237376f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions js/DataverseWorkflowPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ var DataverseWorkflowPage = $.extend(true, {}, pkp.controllers.WorkflowPage, {
return this.components.datasetFiles.items.length === 0;
},

isPublished: function () {
return this.submission.status === pkp.const.STATUS_PUBLISHED;
},

datasetIsPublished: function () {
return this.dataset.versionState === 'RELEASED';
},
Expand Down
2 changes: 1 addition & 1 deletion templates/datasetTab/noResearchData.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{translate key="plugins.generic.dataverse.researchData.noResearchData"}
</p>
<pkp-button
v-if="!isPublished"
v-if="submission.status !== getConstant('STATUS_PUBLISHED')"
@click="$modal.show('uploadResearchData')"
>
{translate key="plugins.generic.dataverse.researchData.uploadResearchData"}
Expand Down
4 changes: 2 additions & 2 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<version>
<application>dataverse</application>
<type>plugins.generic</type>
<release>2.2.5.0</release>
<date>2023-06-29</date>
<release>2.2.6.0</release>
<date>2023-06-30</date>
<lazy-load>1</lazy-load>
<class>DataversePlugin</class>
</version>

0 comments on commit 237376f

Please sign in to comment.