Skip to content

Commit

Permalink
refactor(Contribution assistant): button block on mobile. Small fixes…
Browse files Browse the repository at this point in the history
…. ref #1271
  • Loading branch information
raphodn committed Jan 15, 2025
1 parent d2a94d5 commit ae34c0a
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions src/views/ContributionAssistant.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@
</v-col>
</v-row>
<v-row>
<v-col cols="12">
<v-col cols="12" lg="6">
<h3 class="mb-4">
{{ $t('ContributionAssistant.LabelsExtractionSteps.SendLabels') }}
</h3>
<v-btn color="primary" :disabled="!extractedLabels.length" :loading="processLabelsLoading" @click="processLabels">
<v-btn class="float-right" color="primary" :block="!$vuetify.display.smAndUp" :disabled="!extractedLabels.length" :loading="processLabelsLoading" @click="processLabels">
{{ $t('ContributionAssistant.LabelsExtractionSteps.SendLabelsButton') }}
</v-btn>
</v-col>
Expand Down Expand Up @@ -106,7 +106,7 @@
{{ $t('ContributionAssistant.PriceAddConfirmationMessage', { numberOfPricesAdded: productPriceFormsWithoutPriceId.length, date: proofObject.date, locationName: locationName }) }}
</p>
</v-alert>
<v-btn class="float-right mt-4" color="primary" :loading="loading" @click="addPrices">
<v-btn class="float-right mt-4" color="primary" :block="!$vuetify.display.smAndUp" :loading="loading" @click="addPrices">
{{ $t('Common.UploadMultiplePrices', productPriceFormsWithoutPriceId.length) }}
</v-btn>
</v-col>
Expand All @@ -129,19 +129,29 @@
>
<strong>{{ $t('ContributionAssistant.PriceAddProgress', { numberOfPricesAdded: numberOfPricesAdded, totalNumberOfPrices: productPriceFormsWithoutPriceId.length }) }}</strong>
</v-progress-linear>
<v-btn class="mt-4" color="primary" :aria-label="$t('Common.MyDashboard')" to="/dashboard" :disabled="!allDone">
{{ $t('ContributionAssistant.GoToDashboard') }}
</v-btn>
<v-btn class="mt-4 ml-4" color="primary" :to="'/proofs/' + proofObject.id" :disabled="!allDone">
</v-col>
</v-row>
<v-row class="text-center">
<v-col>
<v-btn color="primary" :block="!$vuetify.display.smAndUp" :to="'/proofs/' + proofObject.id" :disabled="!allDone">
{{ $t('ContributionAssistant.GoToProof') }}
</v-btn>
<v-btn class="mt-4 ml-4" color="primary" :disabled="!allDone" @click="reloadPage">
</v-col>
<v-col>
<v-btn color="primary" :block="!$vuetify.display.smAndUp" :disabled="!allDone" @click="reloadPage">
{{ $t('ContributionAssistant.AddNewProof') }}
</v-btn>
<v-btn v-if="proofIdsFromQueryParam" class="mt-4 ml-4" color="primary" :disabled="!allDone" @click="nextProof">
</v-col>
<v-col v-if="proofIdsFromQueryParam.length > 1">
<v-btn :block="!$vuetify.display.smAndUp" color="primary" :disabled="!allDone" @click="nextProof">
{{ $t('ContributionAssistant.NextProof') }}
</v-btn>
</v-col>
<v-col>
<v-btn color="primary" :block="!$vuetify.display.smAndUp" :aria-label="$t('Common.MyDashboard')" to="/dashboard" :disabled="!allDone">
{{ $t('ContributionAssistant.GoToDashboard') }}
</v-btn>
</v-col>
</v-row>
<v-row v-if="nextProofSuggestions.length">
<v-col>
Expand Down

0 comments on commit ae34c0a

Please sign in to comment.