el-text-editor 0.0.6 → 0.0.7
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/esm2020/lib/el-text-editor.component.mjs +7 -2
- package/fesm2015/el-text-editor.mjs +6 -1
- package/fesm2015/el-text-editor.mjs.map +1 -1
- package/fesm2020/el-text-editor.mjs +6 -1
- package/fesm2020/el-text-editor.mjs.map +1 -1
- package/lib/el-text-editor.component.d.ts +1 -1
- package/package.json +1 -1
@@ -76,6 +76,7 @@ class ElTextEditorComponent {
|
|
76
76
|
this.selectedItemIndex = null;
|
77
77
|
this.parsedTable = null;
|
78
78
|
this.isFullScreen = false;
|
79
|
+
this.userRole = [];
|
79
80
|
this.getUserRoles();
|
80
81
|
}
|
81
82
|
themeMode() {
|
@@ -103,6 +104,9 @@ class ElTextEditorComponent {
|
|
103
104
|
if (changes['reportId']) {
|
104
105
|
sessionStorage.setItem('reportId', this.reportId);
|
105
106
|
}
|
107
|
+
if (changes['UserRole']) {
|
108
|
+
this.getUserRoles();
|
109
|
+
}
|
106
110
|
}
|
107
111
|
ngAfterViewInit() {
|
108
112
|
this.initEditor();
|
@@ -194,8 +198,9 @@ class ElTextEditorComponent {
|
|
194
198
|
// }
|
195
199
|
roleCheck() {
|
196
200
|
var _a;
|
201
|
+
console.log('his.userRole => el => ', this.userRole);
|
197
202
|
let userRoleName = [];
|
198
|
-
for (let i = 0; i
|
203
|
+
for (let i = 0; i <= this.userRole.length; ++i) {
|
199
204
|
userRoleName.push((_a = this.userRole[i]) === null || _a === void 0 ? void 0 : _a.name);
|
200
205
|
}
|
201
206
|
return userRoleName;
|