@enso-ui/users 3.0.1 → 3.0.3
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/package.json
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
<avatar class="is-128x128"
|
|
18
18
|
:user="isSelfVisiting ? user : profile"/>
|
|
19
19
|
<div class="field is-grouped is-justify-content-center mt-3">
|
|
20
|
-
<p class="control"
|
|
20
|
+
<p class="control"
|
|
21
|
+
v-if="isSelfVisiting">
|
|
21
22
|
<a class="button is-primary"
|
|
22
|
-
v-if="isSelfVisiting"
|
|
23
23
|
@click="generateAvatar">
|
|
24
24
|
<span class="icon">
|
|
25
25
|
<fa icon="sync-alt"/>
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
</span>
|
|
30
30
|
</a>
|
|
31
31
|
</p>
|
|
32
|
-
<p class="control"
|
|
32
|
+
<p class="control"
|
|
33
|
+
v-if="isSelfVisiting">
|
|
33
34
|
<enso-uploader @upload-successful="updateAvatar"
|
|
34
35
|
:url="route('core.avatars.store')"
|
|
35
|
-
file-key="avatar"
|
|
36
|
-
v-if="isSelfVisiting">
|
|
36
|
+
file-key="avatar">
|
|
37
37
|
<template #control="{ controlEvents }">
|
|
38
38
|
<a class="button is-info"
|
|
39
39
|
v-on="controlEvents">
|
|
@@ -48,12 +48,8 @@
|
|
|
48
48
|
</enso-uploader>
|
|
49
49
|
</p>
|
|
50
50
|
<p class="control"
|
|
51
|
-
v-if="
|
|
52
|
-
!isWebview
|
|
53
|
-
&& !isSelfVisiting
|
|
54
|
-
&& canAccess('core.impersonate.start')
|
|
55
|
-
&& !impersonating
|
|
56
|
-
">
|
|
51
|
+
v-if="canAccess('core.impersonate.start')
|
|
52
|
+
&& !isWebview && !isSelfVisiting && !impersonating">
|
|
57
53
|
<a class="button is-warning"
|
|
58
54
|
@click="startImpersonating">
|
|
59
55
|
<span class="icon">
|
|
@@ -64,13 +60,13 @@
|
|
|
64
60
|
</span>
|
|
65
61
|
</a>
|
|
66
62
|
</p>
|
|
67
|
-
<p class="control"
|
|
63
|
+
<p class="control"
|
|
64
|
+
v-if="canAccess('administration.users.edit')">
|
|
68
65
|
<a class="button is-warning"
|
|
69
66
|
@click="$router.push({
|
|
70
67
|
name: 'administration.users.edit',
|
|
71
68
|
params: { user: profile.id },
|
|
72
|
-
}).catch(routerErrorHandler)"
|
|
73
|
-
v-if="canAccess('administration.users.edit')">
|
|
69
|
+
}).catch(routerErrorHandler)">
|
|
74
70
|
<span class="icon">
|
|
75
71
|
<fa icon="pencil-alt"/>
|
|
76
72
|
</span>
|
|
@@ -151,7 +147,7 @@ import { mapState, mapMutations, mapGetters } from 'vuex';
|
|
|
151
147
|
import { FontAwesomeIcon as Fa } from '@fortawesome/vue-fontawesome';
|
|
152
148
|
import { library } from '@fortawesome/fontawesome-svg-core';
|
|
153
149
|
import {
|
|
154
|
-
faUser, faUserCircle, faSyncAlt,
|
|
150
|
+
faUser, faUserCircle, faSyncAlt, faUpload, faPencilAlt,
|
|
155
151
|
} from '@fortawesome/free-solid-svg-icons';
|
|
156
152
|
import Avatar from '@enso-ui/users/src/bulma/pages/users/components/Avatar.vue';
|
|
157
153
|
import { EnsoUploader } from '@enso-ui/uploader/bulma';
|
|
@@ -159,7 +155,7 @@ import eventBus from '@enso-ui/ui/src/core/services/eventBus';
|
|
|
159
155
|
import Divider from '@enso-ui/divider';
|
|
160
156
|
import format from '@enso-ui/ui/src/modules/plugins/date-fns/format';
|
|
161
157
|
|
|
162
|
-
library.add(faUser, faUserCircle, faSyncAlt,
|
|
158
|
+
library.add(faUser, faUserCircle, faSyncAlt, faUpload, faPencilAlt);
|
|
163
159
|
|
|
164
160
|
export default {
|
|
165
161
|
name: 'UserProfile',
|