Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/components/Cards/CreateWiki.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
:inFlight="inFlight"
:error="error"
:dismissable="false"
:showTerms="true"
submitButtonText="Create Wiki"
v-model="stepThree"
@previous-step="goToStep(2)"
Expand Down Expand Up @@ -76,8 +75,7 @@ export default {
},
stepThree: {
temporality: '',
otherTemporality: '',
terms: false
otherTemporality: ''
},
hasError: false,
error: [],
Expand Down Expand Up @@ -174,10 +172,6 @@ export default {
this.hasError = true
this.error.username = errors.username[0]
}
if (errors.terms) {
this.hasError = true
this.error.terms = errors.terms[0]
}
if (errors.tooManyWikis) {
this.hasError = true
this.displayGenericError(errors.message)
Expand All @@ -199,7 +193,6 @@ export default {
this.error.sitename = message
this.error.siteaddress = message
this.error.username = message
this.error.terms = message
},
checkCurrentLogin () {
if (!this.currentUser) {
Expand Down
43 changes: 16 additions & 27 deletions src/components/Cards/CreateWikiWizardStepThree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h3>How long do you plan to use this Wikibase?</h3>

<v-radio-group
v-model="value.temporality"

Check warning on line 16 in src/components/Cards/CreateWikiWizardStepThree.vue

View workflow job for this annotation

GitHub Actions / build (22)

Unexpected mutation of "value" prop
:error-messages=error
:rules="[() => !!value.temporality || 'Please select an option.']"
>
Expand Down Expand Up @@ -54,32 +54,22 @@
</template>
</v-radio>
</v-radio-group>

<h3 v-if="showTerms" class="mt-6">Terms of Use</h3>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at Anton's mockup in the ticket, the ToU heading should remain (I guess just without the v-if="showTerms")

<v-checkbox
v-model="value.terms"
:disabled="inFlight"
:rules="[() => !!value.terms || 'You must accept the Terms of Service.']"
v-if="showTerms"
>
<template v-slot:label>
<div>
I agree to the
<v-tooltip bottom>
<template v-slot:activator="{ on }">
<a
target="_blank"
href="/terms-of-use"
@click.stop
v-on="on"
>
Terms of Use</a>
</template>
Opens in new window
</v-tooltip>.
</div>
</template>
</v-checkbox>
<h3 class="mt-6">Terms of Use</h3>
<div class="body-2">
Previously accepted
<v-tooltip top>
<template v-slot:activator="{ on }">
<a
target="_blank"
href="/terms-of-use"
@click.stop
v-on="on"
>
Terms of Use</a>
</template>
Opens in new window
</v-tooltip> still apply.
</div>
</v-form>
</v-card-text>
<v-card-actions>
Expand Down Expand Up @@ -112,7 +102,6 @@
value: Object,
error: Array,
dismissable: Boolean,
showTerms: Boolean,
submitButtonText: String
},
methods: {
Expand Down
Loading