geer-builder 1.2.809 → 1.2.811
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/GPrivilegeCard.vue +8 -9
- package/components/GProfile.vue +8 -2
- package/package.json +1 -1
package/GPrivilegeCard.vue
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="privilege-card"
|
|
2
|
+
<div class="privilege-card q-mt-sm">
|
|
3
3
|
<div class="privilege-card_button" v-if="user_info">
|
|
4
4
|
<div class="slot-holder" v-if="current_slot_info">
|
|
5
|
-
<q-btn color="primary" @click="privilege_card_dialog = true">Scan Privilege Card</q-btn>
|
|
5
|
+
<q-btn color="primary full-width" @click="privilege_card_dialog = true">Scan Privilege Card</q-btn>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
<div v-else>
|
|
@@ -19,21 +19,20 @@ import GlobalMixins from './mixins/global_mixins';
|
|
|
19
19
|
import ScanQR from './components/PrivilegeCard/ScanQR.vue';
|
|
20
20
|
export default
|
|
21
21
|
{
|
|
22
|
+
name: "GPrivilegeCard",
|
|
22
23
|
mixins:[GlobalMixins],
|
|
23
24
|
components: { ScanQR },
|
|
24
25
|
data: () =>
|
|
25
26
|
({
|
|
26
27
|
submit_loading:false,
|
|
27
|
-
privilege_card_dialog:false
|
|
28
|
+
privilege_card_dialog:false,
|
|
28
29
|
}),
|
|
29
30
|
async mounted()
|
|
30
31
|
{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.settings = await this.$_getData('public_settings');
|
|
36
|
-
}
|
|
32
|
+
if(this.user_info.hasOwnProperty('active_slot'))
|
|
33
|
+
{
|
|
34
|
+
await this.$_getSlotInfo();
|
|
35
|
+
}
|
|
37
36
|
},
|
|
38
37
|
methods:
|
|
39
38
|
{
|
package/components/GProfile.vue
CHANGED
|
@@ -23,6 +23,9 @@
|
|
|
23
23
|
<div v-if="prop_user_info && show_elms_login == true && ( show_elms_login_test == false || ( show_elms_login_test == true && prop_user_info.enable_elms_test ) )">
|
|
24
24
|
<q-btn class="full-width q-mt-sm" @click="getElmsLogin()" color="primary" outline>Login to elms</q-btn>
|
|
25
25
|
</div>
|
|
26
|
+
<div v-if="show_privilege_card">
|
|
27
|
+
<g-privilege-card ></g-privilege-card>
|
|
28
|
+
</div>
|
|
26
29
|
<div @click="$emit('closePopup')" class="pinfo" :style="hide_rank ? 'grid-template-columns: 1fr 1fr 1fr 1fr;' : ''">
|
|
27
30
|
<div class="group">
|
|
28
31
|
<div class="val">{{ prop_user_info.slot_owned }}</div>
|
|
@@ -78,6 +81,7 @@
|
|
|
78
81
|
|
|
79
82
|
<script>
|
|
80
83
|
import GCard from './GCard';
|
|
84
|
+
import GPrivilegeCard from '../GPrivilegeCard';
|
|
81
85
|
import GlobalMixins from './../mixins/global_mixins';
|
|
82
86
|
import GCodeVault from '../GCodeVault';
|
|
83
87
|
import EventBus from '../boot/eventbus';
|
|
@@ -90,7 +94,7 @@ export default
|
|
|
90
94
|
{
|
|
91
95
|
mixins:[GlobalMixins],
|
|
92
96
|
props: ['hide_name','profile_details','hide_picture','prop_user_info', 'dialog','mode', 'create_slot','is_company_success', 'hide_banner', 'is_company_ultrapro', 'hide_membership', 'hide_rank'],
|
|
93
|
-
components: { GCard, GCodeVault },
|
|
97
|
+
components: { GCard, GCodeVault,GPrivilegeCard },
|
|
94
98
|
filters: { },
|
|
95
99
|
data:() =>
|
|
96
100
|
({
|
|
@@ -102,7 +106,8 @@ export default
|
|
|
102
106
|
rank: '',
|
|
103
107
|
slot_info:'',
|
|
104
108
|
show_elms_login:false,
|
|
105
|
-
show_elms_login_test:false
|
|
109
|
+
show_elms_login_test:false,
|
|
110
|
+
show_privilege_card : false
|
|
106
111
|
}),
|
|
107
112
|
async mounted()
|
|
108
113
|
{
|
|
@@ -115,6 +120,7 @@ export default
|
|
|
115
120
|
}
|
|
116
121
|
|
|
117
122
|
let profile = await this.$_getData('public_settings');
|
|
123
|
+
if(profile.hasOwnProperty('show_privilege_card') && profile.show_privilege_card == true) this.show_privilege_card = true;
|
|
118
124
|
if(profile.enable_successflix_product == true)
|
|
119
125
|
{
|
|
120
126
|
this.show_elms_login = true;
|