Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
UI
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
apps
UI
Commits
92540df7
Commit
92540df7
authored
2 years ago
by
Sirieam Marie Hunke
Committed by
Petar Hristov
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
508a79a2
No related branches found
No related tags found
2 merge requests
!257
Apiv2
,
!239
Issue/2441 pid api improvements
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/pid/pages/Pid.vue
+5
-10
5 additions, 10 deletions
src/modules/pid/pages/Pid.vue
with
5 additions
and
10 deletions
src/modules/pid/pages/Pid.vue
+
5
−
10
View file @
92540df7
...
@@ -144,7 +144,7 @@ import usePidStore from "../store";
...
@@ -144,7 +144,7 @@ import usePidStore from "../store";
import
useNotificationStore
from
"
@/store/notification
"
;
import
useNotificationStore
from
"
@/store/notification
"
;
import
{
useVuelidate
,
type
ValidationArgs
}
from
"
@vuelidate/core
"
;
import
{
useVuelidate
,
type
ValidationArgs
}
from
"
@vuelidate/core
"
;
import
{
email
,
maxLength
,
required
}
from
"
@vuelidate/validators
"
;
import
{
email
,
maxLength
,
required
}
from
"
@vuelidate/validators
"
;
import
type
{
MessageObject
}
from
"
@coscine/api-client/dist/types/Coscine.Api
.Pid
"
;
import
type
{
PidEnquiryDto
}
from
"
@coscine/api-client/dist/types/Coscine.Api
/api
"
;
export
default
defineComponent
({
export
default
defineComponent
({
setup
()
{
setup
()
{
...
@@ -206,12 +206,6 @@ export default defineComponent({
...
@@ -206,12 +206,6 @@ export default defineComponent({
this
.
$root
.
$emit
(
"
bv::show::tooltip
"
,
"
copyPidTooltip
"
);
this
.
$root
.
$emit
(
"
bv::show::tooltip
"
,
"
copyPidTooltip
"
);
}
}
},
},
getPidSuffix
():
string
{
if
(
this
.
pid
&&
this
.
pid
.
lastIndexOf
(
"
/
"
)
!==
-
1
)
{
return
this
.
pid
.
split
(
"
/
"
)[
1
];
}
return
""
;
},
async
validatePid
():
Promise
<
boolean
|
null
>
{
async
validatePid
():
Promise
<
boolean
|
null
>
{
if
(
this
.
pid
)
{
if
(
this
.
pid
)
{
return
await
this
.
pidStore
.
isPidValid
(
this
.
pid
);
return
await
this
.
pidStore
.
isPidValid
(
this
.
pid
);
...
@@ -220,9 +214,10 @@ export default defineComponent({
...
@@ -220,9 +214,10 @@ export default defineComponent({
async
clickSubmit
()
{
async
clickSubmit
()
{
if
(
this
.
pid
&&
this
.
isPidValid
&&
!
this
.
v$
.
form
.
$invalid
)
{
if
(
this
.
pid
&&
this
.
isPidValid
&&
!
this
.
v$
.
form
.
$invalid
)
{
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
this
.
form
.
pid
=
this
.
pid
;
const
success
=
await
this
.
pidStore
.
contactPidOwner
(
this
.
form
.
guid
=
this
.
getPidSuffix
();
this
.
pid
,
const
success
=
await
this
.
pidStore
.
contactPidOwner
(
this
.
form
);
this
.
form
);
if
(
success
)
{
if
(
success
)
{
// On Success
// On Success
this
.
notificationStore
.
postNotification
({
this
.
notificationStore
.
postNotification
({
...
...
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