Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
idatt2106_2024_02_frontend
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
IDATT2106 - Gruppe 2
idatt2106_2024_02_frontend
Commits
f1b78b9b
Commit
f1b78b9b
authored
10 months ago
by
Malin Haugland Høli
Browse files
Options
Downloads
Patches
Plain Diff
fix:
fixed import statement
parent
e836975b
No related branches found
Branches containing commit
No related tags found
3 merge requests
!66
Final merge
,
!58
Further updates and bug fixes for final delivery
,
!4
Pipeline fix
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/ManageGoalView.vue
+25
-27
25 additions, 27 deletions
src/views/ManageGoalView.vue
with
25 additions
and
27 deletions
src/views/ManageGoalView.vue
+
25
−
27
View file @
f1b78b9b
...
...
@@ -5,6 +5,7 @@ import type { Goal } from '@/types/goal'
import
ProgressBar
from
'
@/components/ProgressBar.vue
'
import
authInterceptor
from
'
@/services/authInterceptor
'
import
ModalComponent
from
'
@/components/ModalComponent.vue
'
import
InteractiveSpare
from
'
@/components/InteractiveSpare.vue
'
const
router
=
useRouter
()
const
uploadedFile
:
Ref
<
File
|
null
>
=
ref
(
null
)
...
...
@@ -245,29 +246,29 @@ const removeUploadedFile = () => {
/>
</div>
<div
class=
"flex flex-col items-center"
>
<p>
Last opp ikon for utfordringen📸
</p>
<label
for=
"fileUpload"
class=
"bg-white text-black text-lg p-1 mt-2 rounded cursor-pointer leading-none"
>
💾
</label>
<input
id=
"fileUpload"
type=
"file"
accept=
".jpg"
hidden
@
change=
"handleFileChange"
/>
<div
v-if=
"uploadedFile"
class=
"flex justify-center items-center mt-2"
>
<p
class=
"text-sm"
>
{{
uploadedFile
.
name
}}
</p>
<button
@
click=
"removeUploadedFile"
class=
"ml-2 text-xs font-bold border-2 p-1 rounded text-red-500"
<p>
Last opp ikon for utfordringen📸
</p>
<label
for=
"fileUpload"
class=
"bg-white text-black text-lg cursor-pointer leading-none rounded-full border p-3 border-black"
>
Fjern fil
</button>
</div>
Legg til 💾
</label>
<input
id=
"fileUpload"
type=
"file"
accept=
".jpg, .png"
hidden
@
change=
"handleFileChange"
/>
<div
v-if=
"uploadedFile"
class=
"flex justify-center items-center mt-2"
>
<p
class=
"text-sm"
>
{{
uploadedFile
.
name
}}
</p>
<button
@
click=
"removeUploadedFile"
class=
"ml-2 text-xs font-bold border-2 p-1 rounded text-red-500"
>
Fjern fil
</button>
</div>
</div>
</div>
...
...
@@ -312,14 +313,11 @@ const removeUploadedFile = () => {
</ModalComponent>
</div>
<div
class=
"lg:absolute right-5 lg:top-1/
4
max-lg:bottom-0 max-lg:mt-44 transform -translate-y-1/2 lg:w-1/4 lg:max-w-xs"
class=
"lg:absolute right-5 lg:top-1/
3
max-lg:bottom-0 max-lg:mt-44 transform -translate-y-1/2 lg:w-1/4 lg:max-w-xs"
>
<InteractiveSpare
:png-size=
"10"
:speech=
"[
'Her kan du lage et sparemål! 💎',
`Trenger du hjelp? Trykk på ❓ nede i høyre hjørne!`
]"
:speech=
"[`Trenger du hjelp? Trykk på ❓ nede i høyre hjørne!`]"
direction=
"left"
/>
</div>
...
...
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