mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
3.2 KiB
47 lines
3.2 KiB
/**
|
|
* @fileoverview added by tsickle
|
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
*/
|
|
import { Injectable } from '@angular/core';
|
|
import { Store } from '@ngxs/store';
|
|
import { PermissionManagementState } from '../states/permission-management.state';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@ngxs/store";
|
|
export class PermissionManagementStateService {
|
|
/**
|
|
* @param {?} store
|
|
*/
|
|
constructor(store) {
|
|
this.store = store;
|
|
}
|
|
/**
|
|
* @return {?}
|
|
*/
|
|
getPermissionGroups() {
|
|
return this.store.selectSnapshot(PermissionManagementState.getPermissionGroups);
|
|
}
|
|
/**
|
|
* @return {?}
|
|
*/
|
|
getEntityDisplayName() {
|
|
return this.store.selectSnapshot(PermissionManagementState.getPermissionGroups);
|
|
}
|
|
}
|
|
PermissionManagementStateService.decorators = [
|
|
{ type: Injectable, args: [{
|
|
providedIn: 'root',
|
|
},] }
|
|
];
|
|
/** @nocollapse */
|
|
PermissionManagementStateService.ctorParameters = () => [
|
|
{ type: Store }
|
|
];
|
|
/** @nocollapse */ PermissionManagementStateService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function PermissionManagementStateService_Factory() { return new PermissionManagementStateService(i0.ɵɵinject(i1.Store)); }, token: PermissionManagementStateService, providedIn: "root" });
|
|
if (false) {
|
|
/**
|
|
* @type {?}
|
|
* @private
|
|
*/
|
|
PermissionManagementStateService.prototype.store;
|
|
}
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGVybWlzc2lvbi1tYW5hZ2VtZW50LXN0YXRlLnNlcnZpY2UuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AYWJwL25nLnBlcm1pc3Npb24tbWFuYWdlbWVudC8iL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