Commit 910a347b authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

pagination : textfield pour changer de page

parent 41c6e63e
Loading
Loading
Loading
Loading
+20 −1
Original line number Diff line number Diff line
@@ -221,8 +221,20 @@
                      class=" d-flex bottom-pagination ma-0 pa-0"
                  >
                    <v-container class="d-flex justify-end ma-0 pa-0">
                      <v-col cols="2">
                        <v-row class="pr-2 mr-2">
                        <v-text-field
                            class="ml-5 pr-5"
                            :value="currentPage"
                            hide-details
                            type="number"
                            label="Page courante"
                            @input="pageFieldChange($event)"
                        />
                        </v-row>
                      </v-col>
                      <v-col cols="6">
                        <v-row class="d-flex justify-end ma-0 pa-0">
                        <v-row class="d-flex justify-center ma-0 pa-0">
                          <v-pagination
                              v-model="currentPage"
                              :length="nbPages"
@@ -236,6 +248,8 @@
                              v-model="pageLength"
                              :items="[10,25,50]"
                              class="ml-5 pr-5"
                              hide-details
                              label="Items par page"
                              @change="reloadCurrentCollection()"
                          />
                        </v-row>
@@ -653,6 +667,11 @@ export default {

  methods: {

    pageFieldChange(e) {
      this.currentPage = Number(e);
      this.gotoPage();
    },

    ...mapActions([
      "fetchProjects",
      "fetchUserPermissions",