Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PStA WP2 OmarElkadi1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omar Elkadi
PStA WP2 OmarElkadi1
Commits
c91a4f65
Commit
c91a4f65
authored
3 years ago
by
Omar Elkadi
Browse files
Options
Downloads
Patches
Plain Diff
change the alert theme
parent
1af21d2f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/views/SickForm.vue
+13
-6
13 additions, 6 deletions
src/views/SickForm.vue
tsconfig.json
+2
-2
2 additions, 2 deletions
tsconfig.json
vetur.config.js
+3
-3
3 additions, 3 deletions
vetur.config.js
with
18 additions
and
11 deletions
src/views/SickForm.vue
+
13
−
6
View file @
c91a4f65
...
...
@@ -153,7 +153,7 @@
<
script
lang=
"ts"
>
import
axios
from
'
axios
'
import
Swal
from
'
sweetalert2
/dist/sweetalert2.js
'
import
Swal
from
'
sweetalert2
'
export
default
{
name
:
'
SickForm
'
,
...
...
@@ -439,27 +439,32 @@ export default {
const
sizeLimit
=
2000000
// 2 megabyte
const
fileExtension
=
file
.
name
.
split
(
'
.
'
).
pop
()
console
.
log
(
fileExtension
)
if
(
!
allowedExtentions
.
includes
(
fileExtension
))
{
// extention validation
this
.
$refs
.
file
.
value
=
null
// delete the file from selection
Swal
.
fire
({
title
:
'
Fehler!
'
,
text
:
'
Die Datei muss jpg, jpeg, png oder pdf
'
,
icon
:
'
error
'
icon
:
'
error
'
,
confirmButtonColor
:
'
#1a4273
'
,
background
:
'
#dadada
'
})
}
else
if
(
file
.
size
>
sizeLimit
)
{
// size validation
this
.
$refs
.
file
.
value
=
null
Swal
.
fire
({
title
:
'
Fehler!
'
,
text
:
'
Die Datei ist zu Groß
'
,
icon
:
'
error
'
icon
:
'
error
'
,
confirmButtonColor
:
'
#1a4273
'
,
background
:
'
#dadada
'
}
)
}
else
{
// if valid then load the file in our valiable
Swal
.
fire
({
title
:
'
Super!
'
,
text
:
'
Die Datei wurde erfolgreich geladen
'
,
icon
:
'
success
'
icon
:
'
success
'
,
confirmButtonColor
:
'
#1a4273
'
,
background
:
'
#dadada
'
})
this
.
EvidenceFile
=
file
}
...
...
@@ -489,7 +494,9 @@ export default {
Swal
.
fire
({
title
:
'
Gesandet!
'
,
text
:
'
Danke für Ihre Meldung
'
,
icon
:
'
success
'
icon
:
'
success
'
,
confirmButtonColor
:
'
#1a4273
'
,
background
:
'
#dadada
'
})
// reset the form
event
.
target
.
reset
()
...
...
This diff is collapsed.
Click to expand it.
tsconfig.json
+
2
−
2
View file @
c91a4f65
...
...
@@ -3,9 +3,9 @@
"./src/**/*"
],
"compilerOptions"
:
{
"module"
:
"es
2015
"
,
"module"
:
"es
NEXT
"
,
"moduleResolution"
:
"node"
,
"target"
:
"es
6
"
,
"target"
:
"es
NEXT
"
,
"sourceMap"
:
true
,
"allowJs"
:
true
}
...
...
This diff is collapsed.
Click to expand it.
vetur.config.js
+
3
−
3
View file @
c91a4f65
...
...
@@ -5,8 +5,8 @@ module.exports = {
// override vscode settings
// Notice: It only affects the settings used by Vetur.
settings
:
{
"
vetur.useWorkspaceDependencies
"
:
true
,
"
vetur.experimental.templateInterpolationService
"
:
true
'
vetur.useWorkspaceDependencies
'
:
true
,
'
vetur.experimental.templateInterpolationService
'
:
true
},
// **optional** default: `[{ root: './' }]`
// support monorepos
...
...
@@ -39,4 +39,4 @@ module.exports = {
]
}
]
}
\ No newline at end of file
}
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