We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf89357 commit 6bb1bb2Copy full SHA for 6bb1bb2
reactjs/.gitignore
@@ -11,6 +11,7 @@
11
12
# misc
13
.DS_Store
14
+.env.development
15
.env.local
16
.env.development.local
17
.env.test.local
reactjs/src/components/AppBaseComponent/index.tsx
@@ -0,0 +1,16 @@
1
+import * as React from 'react';
2
+import AppConsts from 'src/lib/appconst';
3
+
4
+class AppBaseComponent extends React.Component {
5
+ localizationSourceName = AppConsts.localization.defaultLocalizationSourceName;
6
7
+ L(key: string, sourceName?: string): string {
8
+ return abp.localization.localize(key, sourceName ? sourceName : this.localizationSourceName);
9
+ }
10
+ isGranted(permissionName: string): boolean {
+ return abp.auth.isGranted(permissionName);
+}
+export default AppBaseComponent;
0 commit comments