Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
piveau-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Till Riedel
piveau-ui
Commits
c498a23c
Commit
c498a23c
authored
2 months ago
by
mic29226
Browse files
Options
Downloads
Patches
Plain Diff
final quickfix for tempRes
parent
718b6502
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/piveau-hub-ui-modules/lib/data-provider-interface/components/TempResPage.vue
+6
-6
6 additions, 6 deletions
...es/lib/data-provider-interface/components/TempResPage.vue
with
6 additions
and
6 deletions
packages/piveau-hub-ui-modules/lib/data-provider-interface/components/TempResPage.vue
+
6
−
6
View file @
c498a23c
...
...
@@ -41,7 +41,8 @@
</div>
<div
class=
"dpiV3_tempAddMore"
>
<ButtonV3
:buttonText=
'$t("message.dataupload.datasets.dcat:temporalResolution.addMore")'
size=
"medium"
iconStart=
"plus"
variant=
"tertiary"
@
click=
"counter = counter + 1; timesList.push(
{ id: counter }); dynamicButtonText = t('message.dataupload.menu.delete')" />
iconStart=
"plus"
variant=
"tertiary"
@
click=
" timesList.push(
{ id: timesList.length + 1 }); dynamicButtonText = t('message.dataupload.menu.delete')" />
</div>
</div>
...
...
@@ -57,7 +58,7 @@ import { useI18n } from "vue-i18n";
const
{
t
}
=
useI18n
();
let
checkboxState
=
ref
([
false
]);
let
timesList
=
ref
([{
id
:
0
,
'
dcat:startDate
'
:
"
DD/MM/YYYY
"
,
'
dcat:endDate
'
:
"
DD/MM/YYYY
"
}])
let
counter
=
0
const
currentIndex
=
ref
()
let
dynamicButtonText
=
ref
(
t
(
"
message.dataupload.menu.reset
"
))
// Watcher für dynamische Aktualisierung
...
...
@@ -73,14 +74,13 @@ const handleInput = (dateItem, index, key) => {
// ToDo
}
const
removeIndex
=
(
index
)
=>
{
if
(
index
==
1
)
{
dynamicButtonText
.
value
=
t
(
"
message.dataupload.menu.reset
"
);
}
// Verwende die ID des Objekts, um es zu entfernen
const
idToRemove
=
timesList
.
value
[
index
].
id
;
// Filtere das Array basierend auf der ID
timesList
.
value
=
timesList
.
value
.
filter
(
item
=>
item
.
id
!==
idToRemove
);
if
(
timesList
.
value
.
length
===
1
)
{
dynamicButtonText
.
value
=
t
(
"
message.dataupload.menu.reset
"
);
}
}
</
script
>
<
style
scoped
>
...
...
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