geer-builder 1.2.752 → 1.2.754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/GLogin.vue CHANGED
@@ -31,8 +31,11 @@
31
31
 
32
32
 
33
33
  <div class="g-login__fields q-mt-md" style="margin-top: 20px">
34
- <q-btn class="submit-login" :disable="is_submitting" :loading="is_submitting" type="submit" color="primary full-width button-login" unelevated>Sign In</q-btn>
35
- <q-btn v-if="!hide_registration" class="full-width q-mt-sm" @click="openRegistration()" color="primary" outline>Create Account</q-btn>
34
+ <q-btn v-if="!hide_registration" style="margin-bottom:5px;" class="full-width q-mt-sm" @click="openRegistration()" color="primary" outline>Create Account</q-btn>
35
+ <q-btn class="submit-login" :disable="is_submitting" style="margin-bottom:5px;" :loading="is_submitting" type="submit" color="primary full-width button-login" unelevated>Sign In</q-btn>
36
+ <div style="text-align:center; margin-bottom:5px;" v-if="new_create_account_form">No account? <a style="font-weight:bold" href="javascript:void(0)" @click="openRegistration();" >Sign Up</a></div>
37
+ <div style="text-align:center" v-if="new_create_account_form"> (YOU CAN LOGIN YOUR EXISTING WEB PORTAL ACCOUNT) </div>
38
+
36
39
  </div>
37
40
 
38
41
  <!-- <div class="social-holder">
@@ -100,7 +103,8 @@ export default
100
103
  val: Boolean,
101
104
  hide_registration: Boolean,
102
105
  mbot:Boolean,
103
- show_pass_button:Boolean
106
+ show_pass_button:Boolean,
107
+ new_create_account_form:Boolean
104
108
 
105
109
  },
106
110
  components: { GRegistration,GForgotPassword },
package/GNoSlot.vue CHANGED
@@ -2,7 +2,7 @@
2
2
  <q-page class="text-center no-slot">
3
3
  <!-- NO SLOT -->
4
4
  <div>
5
- <g-card class="q-pa-lg">
5
+ <g-card class="q-pa-lg" v-if="!is_enable_refresh && !is_no_code">
6
6
  <div class="q-mb-md message">We have detected that you don't have a <b>slot</b> yet.</div>
7
7
  <div>
8
8
  <q-btn @click="is_open_add_slot_dialog = true" color="primary" unelevated>
@@ -11,6 +11,15 @@
11
11
  </q-btn>
12
12
  </div>
13
13
  </g-card>
14
+ <g-card class="q-pa-lg" v-if="is_enable_refresh || is_no_code">
15
+ <div class="q-mb-md message">We have detected that you don't have a <b>slot</b> yet.</div>
16
+ <div>
17
+ <q-btn @click="$emit('refreshPage')" color="primary" unelevated>
18
+ <q-icon name="fa fa-plus" size="12px" class="q-mr-sm"></q-icon>
19
+ Refresh Page
20
+ </q-btn>
21
+ </div>
22
+ </g-card>
14
23
 
15
24
  <q-dialog :maximized="$q.platform.is.mobile" transition-show="slide-up" transition-hide="slide-down" v-model="is_open_add_slot_dialog">
16
25
  <add-slot-dialog @closeDialog="is_open_add_slot_dialog = false"></add-slot-dialog>
@@ -72,6 +81,7 @@ export default
72
81
  mixins: [GlobalMixins],
73
82
  data: () =>
74
83
  ({
84
+ is_no_code: false,
75
85
  is_open_add_slot_dialog: false,
76
86
  db_code: new DB_CODE(),
77
87
  code_list: [],
@@ -85,6 +95,10 @@ export default
85
95
  this.loadCodes();
86
96
  this.getSettings();
87
97
  },
98
+ props:
99
+ {
100
+ is_enable_refresh:Boolean
101
+ },
88
102
  methods:
89
103
  {
90
104
  async getSettings()
@@ -100,6 +114,11 @@ export default
100
114
  async loadCodes()
101
115
  {
102
116
  await this.$bind('code_list', this.db_code.collection().where('recipient', '==', this.user_info.uid));
117
+
118
+ if(this.code_list.length == 0 || !this.code_list.length)
119
+ {
120
+ this.is_no_code = true;
121
+ }
103
122
  },
104
123
  async addSlot(code)
105
124
  {
@@ -19,7 +19,7 @@
19
19
  <g-no-slot/>
20
20
  </template>
21
21
  <q-dialog v-model="is_select_branch_dialog">
22
- <choose-branch-dialog :product_id="product_details.product_id" @chooseBranch="selectBranch" @outOfStock="outOfStock"></choose-branch-dialog>
22
+ <choose-branch-dialog :product_id="product_details.product_id"></choose-branch-dialog>
23
23
  </q-dialog>
24
24
  </div>
25
25
  </template>
@@ -57,11 +57,6 @@ export default
57
57
  {
58
58
  this.replicated_link = `https://${this.link}/#/?sponsor=${this.current_slot_info.slot_code}`;
59
59
 
60
- if(this.is_settings_link_shop)
61
- {
62
- this.replicated_link = `https://${this.link}/#/shop?sponsor=${this.current_slot_info.slot_code}`;
63
- }
64
-
65
60
  if(this.mbot)
66
61
  {
67
62
  this.replicated_link = `https://${this.link}/#/registration?sponsor=${this.current_slot_info.slot_code}`;
@@ -75,6 +70,11 @@ export default
75
70
  {
76
71
  this.replicated_link = `https://${window.location.host}/#/?sponsor=${this.current_slot_info.slot_code}`;
77
72
  }
73
+
74
+ if(this.is_settings_link_shop)
75
+ {
76
+ this.replicated_link = `https://${this.link}/#/shop?sponsor=${this.current_slot_info.slot_code}`;
77
+ }
78
78
  this.loading = false;
79
79
  },
80
80
  methods:
package/GTransaction.vue CHANGED
@@ -151,7 +151,7 @@ export default
151
151
  {
152
152
  name : 'customer_name',
153
153
  label : 'Customer Name',
154
- field : row => row.customer.name.toUpperCase(),
154
+ field : row => row.update_name ? row.update_name : row.customer.name.toUpperCase(),
155
155
  align : 'left',
156
156
  required: true,
157
157
  format: val => `${val}`,
@@ -23,6 +23,7 @@
23
23
  :total_payment="sale.total_payment"
24
24
  :total_discount ="sale.total_discount"
25
25
  :payment_method ="sale.payment_method"
26
+ :update_name ="sale.hasOwnProperty('update_name') ? sale.update_name : null"
26
27
  :slot_reference ="sale.slot_reference"
27
28
  :transaction_refill ="sale.transaction_refill"
28
29
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geer-builder",
3
- "version": "1.2.752",
3
+ "version": "1.2.754",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {