ali 3 سال پیش
والد
کامیت
3693ed0b07

+ 1 - 0
src/components/Auth/LoginStep.vue

@@ -31,6 +31,7 @@
              outlined
              class="password-input"
              label="گذرواژه خود را وارد کنید"
+             type="password"
              @keydown.enter="login">
       <template v-slot:prepend>
         <q-icon name="person" />

+ 8 - 1
src/css/Theme/quasar-crud/EntityIndex.scss

@@ -1,8 +1,15 @@
 .entity-index {
-  .q-card {
+  & > .q-card {
     border-radius: 8px;
+    & > .q-card__section {
+      padding: 0;
+    }
     .entity-crud-formBuilder {
       margin-bottom: 11px;
+      padding: 16px;
+    }
+    .quasar-crud-index-table {
+      padding: 0;
     }
   }
 }

+ 2 - 2
src/css/Theme/quasar-crud/index.scss

@@ -1,6 +1,6 @@
 .quasar-crud-index-table {
-  margin-right: -32px;
-  margin-left: -32px;
+  //margin-right: -32px;
+  //margin-left: -32px;
   //margin-top: -16px;
   padding-top: 0;
   .q-table__container {

+ 2 - 2
src/pages/User/Profile/classrooms.vue

@@ -9,8 +9,8 @@
                 :show-expand-button="false"
                 :show-reload-button="false"
                 :show-search-button="false">
-    <template v-slot:entity-index-table-cell="{inputData}">
-      <template v-if="inputData.col.name === 'actions'">
+    <template #entity-index-table-cell="{inputData}">
+      <template v-if="inputData.col.name === 'action'">
         <q-btn size="md"
                color="primary"
                label="جزییات"

+ 11 - 3
src/pages/User/Profile/sessionInfo.vue

@@ -1,5 +1,13 @@
 <template>
   <div>
+    <div class="flex justify-end">
+      <q-btn flat
+             color="grey"
+             @click="$router.go(-1)">
+        بازگشت
+        >
+      </q-btn>
+    </div>
     <entity-show v-model:value="inputs"
                  title="جزییات جلسه"
                  :api="api"
@@ -90,8 +98,8 @@
 
 <script>
 import { EntityShow } from 'quasar-crud'
-import API_ADDRESS from 'src/api/Addresses.js'
 import ShamsiDate from 'src/assets/ShamsiDate.js'
+import { APIGateway } from 'src/api/APIGateway.js'
 
 export default {
   name: 'UserPanel.Profile.ClassroomInfo',
@@ -100,7 +108,7 @@ export default {
   },
   data () {
     return {
-      api: API_ADDRESS.session.base,
+      api: null,
       entityIdKey: 'id',
       entityParamKey: 'id',
       showRouteName: 'UserPanel.Profile.SessionInfo',
@@ -140,7 +148,7 @@ export default {
     }
   },
   created () {
-    this.api += '/' + this.$route.params.id
+    this.api = APIGateway.session.APIAdresses.byId(this.$route.params.id)
   },
   methods: {
     getInputValue (name) {