Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmholtz Centre for Environmental Research – UFZ
IT
RDM
BioMe
tmd
frontend
Commits
f5312d33
Commit
f5312d33
authored
3 years ago
by
Chris Steinmann
Browse files
Options
Downloads
Patches
Plain Diff
#301
silence console warnings
parent
3e8573a0
No related branches found
No related tags found
2 merge requests
!314
Merging for 0.8.1 Hotfix
,
!286
Resolve "Transektsteckbrief: Zuweisung/Änderungsmöglichkeit eines Nutzers zum Transekt und seine Rolle zum Transekt"
Pipeline
#421028
passed
3 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/src/views/TransectProfile.ts
+15
-0
15 additions, 0 deletions
app/src/views/TransectProfile.ts
app/src/views/TransectProfile.vue
+2
-2
2 additions, 2 deletions
app/src/views/TransectProfile.vue
with
17 additions
and
2 deletions
app/src/views/TransectProfile.ts
+
15
−
0
View file @
f5312d33
...
...
@@ -15,6 +15,9 @@ export default class TransectManagement extends Vue {
private
transectUserHistories
:
any
[]
=
[];
private
showAssignDialog
=
false
;
private
loadingAssignment
=
false
;
private
confirmationAlert
=
false
;
private
failAlert
=
false
;
private
errorMessage
=
""
;
private
beforeMount
()
{
const
transectId
=
this
.
$route
.
params
.
id
;
...
...
@@ -52,6 +55,7 @@ export default class TransectManagement extends Vue {
this
.
regularUsers
=
[];
this
.
usersWithSpecialRoles
=
[];
console
.
log
(
retrievedTransect
.
users
.
collection
);
for
(
const
user
of
retrievedTransect
.
users
.
collection
)
{
if
(
user
.
userRoles
.
collection
.
length
===
1
)
{
this
.
regularUsers
.
push
(
user
);
...
...
@@ -84,6 +88,17 @@ export default class TransectManagement extends Vue {
this
.
showAssignDialog
=
false
;
}
private
showConfirmationAlert
()
{
this
.
confirmationAlert
=
true
;
this
.
failAlert
=
false
;
}
private
showFailAlert
(
errMsg
:
string
)
{
this
.
errorMessage
=
errMsg
;
this
.
confirmationAlert
=
false
;
this
.
failAlert
=
true
;
}
private
isValidUserHistoryData
(
response
:
AxiosResponse
)
{
return
response
&&
response
.
data
&&
response
.
data
.
data
&&
response
.
data
.
data
.
transectUserHistories
&&
response
.
data
.
data
.
transectUserHistories
.
collection
;
...
...
This diff is collapsed.
Click to expand it.
app/src/views/TransectProfile.vue
+
2
−
2
View file @
f5312d33
...
...
@@ -101,10 +101,10 @@
<v-spacer/>
</v-card-actions>
<v-container
class=
"justify-center"
fluid
>
<v-alert
v-show=
"
showC
onfirmationAlert"
transition=
"fade-transition"
type=
"success"
dismissible
>
<v-alert
v-show=
"
c
onfirmationAlert"
transition=
"fade-transition"
type=
"success"
dismissible
>
{{
$t
(
"
sharedHistory.deletionSucceeded
"
)
}}
</v-alert>
<v-alert
v-show=
"
showF
ailAlert"
dismissible
transition=
"fade-transition"
type=
"error"
>
<v-alert
v-show=
"
f
ailAlert"
dismissible
transition=
"fade-transition"
type=
"error"
>
{{
errorMessage
}}
</v-alert>
</v-container>
...
...
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