Skip to content

Commit

Permalink
Merge pull request #706 from datacite/doi-create-button
Browse files Browse the repository at this point in the history
Issue 705: Create DOI button requires user to...
  • Loading branch information
svogt0511 authored Jan 26, 2023
2 parents ddd7973 + 7b6d2f2 commit 0f7c3e7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/components/create-doi-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,10 @@ export default Component.extend({

this.set('currentUser', this.currentUser);
},

actions: {
createDoi() {
this.router.transitionTo('repositories.show.dois.new');
}
}
});
2 changes: 1 addition & 1 deletion app/styles/local.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
background-color: rgb(128, 128, 128, .1);
}

.create-doi-button button a {
.create-doi-button button {
font-size: 16px !important;
}

Expand Down
4 changes: 2 additions & 2 deletions app/templates/components/create-doi-button.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div style="display: inline-block; width: 100%;">
<BsDropdown as |dd|>
<BsButton class="btn-warning">
{{#link-to "repositories.show.dois.new" class='btn-warning transparent-background' title='Using DOI Form' id="omnipresent-new-doi"}}<i class="fas fa-edit"></i>Create DOI{{/link-to}}
<BsButton class="btn-warning" @onClick={{action "createDoi"}} id="omnipresent-new-doi" title='Create DOI Using Form'>
<i class="fas fa-edit"></i>Create DOI
</BsButton>
<dd.button class="btn-warning"><span class="caret caret-point"></span></dd.button>
<dd.menu as |ddm|>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bracco",
"version": "4.0.0",
"version": "4.0.1",
"private": true,
"description": "Fabrica",
"repository": {
Expand Down

0 comments on commit 0f7c3e7

Please sign in to comment.