Procházet zdrojové kódy

Merge branch 'master' of http://git.hghweb.ir/ali.s/palizvani-front-vite

ali před 2 roky
rodič
revize
a245dd2869

+ 10 - 4
src/components/Auth/ForgetStep.vue

@@ -35,7 +35,7 @@
     </template>
     <template v-else-if="registerStep === 'verify'">
       <label for="verifyNumber">
-        .لطفا کد تایید ارسال شده به شماره
+        .لطفا کد تایید ارسال شده به
         {{ username }}
         را وارد کنید
       </label>
@@ -72,14 +72,16 @@
                v-model="password"
                outlined
                class="password-input"
-               type="password"
+               :type="visibilityIcon === 'visibility' ? 'password' : 'text'"
                placeholder="گذرواژه جدید خود را وارد کنید"
                @keydown.enter="verify">
         <template v-slot:prepend>
-          <q-icon name="person" />
+          <q-icon name="lock_open" />
         </template>
         <template v-slot:append>
-          <q-icon name="person" />
+          <q-icon :name="visibilityIcon"
+                  class="cursor-pointer"
+                  @click="toggleVisibilityIcon" />
         </template>
       </q-input>
       <q-btn class="full-width btn-verifyUsername"
@@ -122,6 +124,7 @@ export default {
     sendOtpLoading: false,
     timerEnded: false,
     loading: false,
+    visibilityIcon: 'visibility',
     bannerMessage: 'بازیابی گذرواژه',
     registerStep: 'getUsername',
     username: null,
@@ -157,6 +160,9 @@ export default {
     this.$store.dispatch('Auth/logOut')
   },
   methods: {
+    toggleVisibilityIcon () {
+      this.visibilityIcon = this.visibilityIcon === 'visibility' ? 'visibility_off' : 'visibility'
+    },
     onStopTimer () {
       this.timerEnded = true
     },

+ 2 - 1
src/components/Widgets/Event/LastEvents/LastEvents.vue

@@ -147,7 +147,8 @@ export default {
       this.events.loading = true
       // return APIGateway.event.index()
       return APIGateway.classroom.index({
-        unit__category__type: 'EVENT'
+        unit__category__type: 'EVENT',
+        per_page: 9999
       })
     }
   }