Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
boco-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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_2022_02
boco-frontend
Commits
7ce043e9
Commit
7ce043e9
authored
2 years ago
by
Erik Borgeteien Hansen
Browse files
Options
Downloads
Patches
Plain Diff
removed category
parent
cd66c176
No related branches found
Branches containing commit
No related tags found
1 merge request
!53
Remove category
Pipeline
#177640
failed
2 years ago
Stage: setup
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/CommunityComponents/NewCommunityForm.vue
+15
-12
15 additions, 12 deletions
src/components/CommunityComponents/NewCommunityForm.vue
with
15 additions
and
12 deletions
src/components/CommunityComponents/NewCommunityForm.vue
+
15
−
12
View file @
7ce043e9
...
...
@@ -101,7 +101,7 @@
</div>
</div>
<!-- Select category
-->
<!-- Select category
<div
class=
"mt-6"
>
<label
class=
"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400"
...
...
@@ -125,7 +125,7 @@
</option>
</select>
<!--
error message for select box
-->
error message for select box
<div
class=
"text-red"
v-for=
"(error, index) of v$.group.select.$errors"
...
...
@@ -135,7 +135,7 @@
{{
error
.
$message
}}
</div>
</div>
</div>
</div>
-->
<!-- Description -->
<div
class=
"mt-6"
:class=
"
{ error: v$.group.description.$errors.length }">
...
...
@@ -184,13 +184,16 @@
<!-- Button for adding an image -->
<div
class=
"inline-flex rounded-md shadow-sm"
>
<button
<div
class=
"text-red-500 uppercase text-center"
>
midlertidig fjernet
</div>
<!--
<button
@
click=
"$refs.file.click()"
class=
"text-black bg-gray-200 hover:bg-grey-800 focus:ring-4 focus:outline-none focus:ring-grey-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-grey-600 dark:hover:bg-grey-700 dark:focus:ring-grey-800 disabled:opacity-50
cursor-not-allowed
"
class=
"text-black bg-gray-200 hover:bg-grey-800 focus:ring-4 focus:outline-none focus:ring-grey-300 font-medium rounded-lg text-sm sm:w-auto px-5 py-2.5 text-center dark:bg-grey-600 dark:hover:bg-grey-700 dark:focus:ring-grey-800 disabled:opacity-50"
:disabled=
"imageAdded"
>
Velg bilde
</button>
</button>
-->
<!-- Button for removing an image -->
<button
...
...
@@ -266,9 +269,9 @@ export default {
maxLength
(
200
)
),
},
select
:
{
required
:
helpers
.
withMessage
(()
=>
`Velg en kategori`
,
required
),
},
//
select: {
//
required: helpers.withMessage(() => `Velg en kategori`, required),
//
},
},
};
},
...
...
@@ -276,10 +279,10 @@ export default {
return
{
group
:
{
name
:
""
,
select
:
null
,
//
select: null,
description
:
""
,
images
:
[],
categories
:
[
"
Borettslag
"
,
"
Idrettsklubb
"
,
"
Fritidsklubb
"
],
//
categories: ["Borettslag", "Idrettsklubb", "Fritidsklubb"],
radio
:
null
,
place
:
""
,
visibility
:
1
,
...
...
@@ -335,7 +338,7 @@ export default {
console
.
log
(
"
Navn:
"
+
this
.
group
.
name
);
console
.
log
(
"
Sted:
"
+
this
.
group
.
place
);
console
.
log
(
"
Synlighet:
"
+
this
.
group
.
radio
);
console
.
log
(
"
Kategori:
"
+
this
.
group
.
select
);
//
console.log("Kategori: " + this.group.select);
console
.
log
(
"
Beskrivelse:
"
+
this
.
group
.
description
);
console
.
log
(
"
bilder:
"
+
this
.
group
.
images
);
...
...
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