Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
masterarbeit-frontend
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
Container 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
Robin Leber
masterarbeit-frontend
Commits
3884f041
Commit
3884f041
authored
11 months ago
by
Robin Leber
Browse files
Options
Downloads
Patches
Plain Diff
FIX: naming
parent
cfa50ffb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/functions/naming.js
+5
-9
5 additions, 9 deletions
src/functions/naming.js
src/index.html
+1
-1
1 addition, 1 deletion
src/index.html
with
6 additions
and
10 deletions
src/functions/naming.js
+
5
−
9
View file @
3884f041
...
@@ -13,20 +13,18 @@ export const namePipe = (instance) => {
...
@@ -13,20 +13,18 @@ export const namePipe = (instance) => {
);
);
while
(
true
)
{
while
(
true
)
{
newPipeName
=
prompt
(
"
Bitte geben Sie einen P
ipe
N
ame
n ein
:
"
);
newPipeName
=
prompt
(
"
Please enter a p
ipe
n
ame:
"
);
let
nameExists
=
Array
.
from
(
appState
.
getState
().
pipes
.
values
()).
includes
(
let
nameExists
=
Array
.
from
(
appState
.
getState
().
pipes
.
values
()).
includes
(
newPipeName
newPipeName
);
);
if
(
nameExists
)
{
if
(
nameExists
)
{
alert
(
alert
(
"
This name is already taken. Please enter another name.
"
);
"
Dieser Name ist bereits vergeben. Bitte geben Sie einen anderen Namen ein.
"
);
}
else
if
(
pipeHasConnection
&&
pipeWasNamedBefore
&&
newPipeName
)
{
}
else
if
(
pipeHasConnection
&&
pipeWasNamedBefore
&&
newPipeName
)
{
if
(
if
(
confirm
(
confirm
(
"
Durch ändern des P
ipe
N
ame
ns
wi
rd
dein
Code im Filter angepasst! Alle alten P
ipe
N
ame
n
w
erden durch den Neuen ersetzt
.
"
"
Changing the p
ipe
n
ame wi
ll adjust your co
de
in
the filter! All old p
ipe
n
ame
s
w
ill be replaced by the new one
.
"
)
)
)
{
)
{
const
oldPipeName
=
appState
.
getPipe
(
selectedPipe
);
const
oldPipeName
=
appState
.
getPipe
(
selectedPipe
);
...
@@ -79,16 +77,14 @@ export const nameFilter = (instance) => {
...
@@ -79,16 +77,14 @@ export const nameFilter = (instance) => {
let
newFilterName
;
let
newFilterName
;
while
(
true
)
{
while
(
true
)
{
newFilterName
=
prompt
(
"
Bitte geben Sie einen F
ilter
N
ame
n ein
:
"
);
newFilterName
=
prompt
(
"
Please enter a f
ilter
n
ame:
"
);
const
allFilterNames
=
document
.
querySelectorAll
(
"
#Diagram #FilterName
"
);
const
allFilterNames
=
document
.
querySelectorAll
(
"
#Diagram #FilterName
"
);
let
nodeArray
=
Array
.
from
(
allFilterNames
);
let
nodeArray
=
Array
.
from
(
allFilterNames
);
let
innerHTMLArray
=
nodeArray
.
map
((
node
)
=>
node
.
innerHTML
);
let
innerHTMLArray
=
nodeArray
.
map
((
node
)
=>
node
.
innerHTML
);
const
nameExists
=
innerHTMLArray
.
includes
(
newFilterName
);
const
nameExists
=
innerHTMLArray
.
includes
(
newFilterName
);
if
(
nameExists
)
{
if
(
nameExists
)
{
alert
(
alert
(
"
This name is already taken. Please enter another name.
"
);
"
Dieser Name ist bereits vergeben. Bitte geben Sie einen anderen Namen ein.
"
);
}
else
{
}
else
{
break
;
break
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/index.html
+
1
−
1
View file @
3884f041
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
</div>
</div>
<hr
/>
<hr
/>
<div>
<div>
<h5>
FILTER
</h5>
<h5>
FILTER
S
</h5>
<div
class=
"Filter"
data-type=
"Start"
>
<div
class=
"Filter"
data-type=
"Start"
>
Sender
Sender
<br
/>
<br
/>
...
...
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