Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
noatgnu committed Nov 25, 2024
1 parent eca7b72 commit ab6789a
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
<body>
<app-root></app-root>
<noscript>Please enable JavaScript to continue using this application.</noscript>
<script src="runtime.04dda3f52c76e240.js" type="module"></script><script src="polyfills.54ceafa6c8d51deb.js" type="module"></script><script src="scripts.dfd002a3f97f1569.js" defer></script><script src="main.ef0640f16baddadc.js" type="module"></script></body>
<script src="runtime.04dda3f52c76e240.js" type="module"></script><script src="polyfills.54ceafa6c8d51deb.js" type="module"></script><script src="scripts.dfd002a3f97f1569.js" defer></script><script src="main.28785c478f4dcce9.js" type="module"></script></body>
</html>

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/ngsw.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"configVersion": 1,
"timestamp": 1732480737688,
"timestamp": 1732543989480,
"index": "/index.html",
"assetGroups": [
{
Expand All @@ -15,7 +15,7 @@
"/55.7063ba82ffafcfc6.js",
"/favicon.ico",
"/index.html",
"/main.ef0640f16baddadc.js",
"/main.28785c478f4dcce9.js",
"/manifest.webmanifest",
"/polyfills.54ceafa6c8d51deb.js",
"/runtime.04dda3f52c76e240.js",
Expand Down Expand Up @@ -129,8 +129,8 @@
"/bootstrap-icons.70a9dee9e5ab72aa.woff": "d5831fd39baf13aff7626e483b9a089730f18604",
"/bootstrap-icons.bfa90bda92a84a6a.woff2": "020c3c6f9280a315e8425d7f92e15bcd0cdda1b2",
"/favicon.ico": "22f6a4a3bcaafafb0254e0f2fa4ceb89e505e8b2",
"/index.html": "00e2f9a94386c737f9bfd0826247b0ffcded6eb5",
"/main.ef0640f16baddadc.js": "aaddd9120f9c699e9d45ec8af5ba8855fec2115d",
"/index.html": "3bfb124bb72b27aac65645aee1c00fdd631995dd",
"/main.28785c478f4dcce9.js": "fb62b9b3236f3eca54666bb4751738f41d031f2f",
"/manifest.webmanifest": "0f6d8f1c753e9f503daf4cd303ebecc6b0b0a04b",
"/polyfills.54ceafa6c8d51deb.js": "bf3ba7612b763789aaac4865ae3671d83d77f8fb",
"/runtime.04dda3f52c76e240.js": "0bac40a792503167829a4ee004a113c9d1587b1b",
Expand Down
1 change: 1 addition & 0 deletions src/app/components/datacite/datacite.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ export class DataciteComponent {
}
this.accountsService.curtainAPI.submitDataCite(payload).then((value) => {
this.toastService.show("DOI Created", `Your ${value.data["doi"]} has been created`, 5000, "success").then()
this.modal.close(value.data["doi"])
})

}
Expand Down
6 changes: 5 additions & 1 deletion src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
@if (!permanent) {
<span class="badge bg-danger">Temporary</span>
} @else {
<span class="badge bg-success">Permanent</span>
@if (isDOI) {
<span class="badge bg-success">DOI Permanent Link</span>
} @else {
<span class="badge bg-success">Permanent</span>
}
}
</div>
<div class="p-2">
Expand Down
11 changes: 11 additions & 0 deletions src/app/components/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ export class HomeComponent implements OnInit {
this.initialize().then(
() => {
this.route.params.subscribe(params => {
this.isDOI = false
this.loadingDataCite = false
console.log(params)
if (params) {
if (params["settings"] && params["settings"].startsWith("access_token")){
Expand Down Expand Up @@ -957,5 +959,14 @@ export class HomeComponent implements OnInit {
openDataciteDOI() {
const ref = this.modal.open(DataciteComponent, {scrollable: true, size: "xl"})
ref.componentInstance.linkID = this.settings.settings.currentID
ref.closed.subscribe((data) => {
if (data) {
this.uniqueLink = location.origin + "/#/" + encodeURIComponent(`doi.org/${data}`)
this.settings.settings.currentID = `doi.org/${data}`
this.permanent = true
this.isDOI = true
this.data.session = {permanent: true}
}
})
}
}

0 comments on commit ab6789a

Please sign in to comment.