mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
Remove TagService
This commit is contained in:
parent
b16854898b
commit
d6ca943d23
@ -2,7 +2,6 @@ import AppStrings from '~services/app.strings';
|
||||
import BaseStringService from '~services/base-string.service';
|
||||
import CacheService from '~services/cache.service';
|
||||
import EventService from '~services/event.service';
|
||||
import TagService from '~services/tag.service';
|
||||
|
||||
const MODULE_NAME = 'at.lib.services';
|
||||
|
||||
@ -13,7 +12,6 @@ angular
|
||||
.service('AppStrings', AppStrings)
|
||||
.service('BaseStringService', BaseStringService)
|
||||
.service('CacheService', CacheService)
|
||||
.service('EventService', EventService)
|
||||
.service('TagService', TagService);
|
||||
.service('EventService', EventService);
|
||||
|
||||
export default MODULE_NAME;
|
||||
|
@ -1,19 +0,0 @@
|
||||
function TagService (strings, $filter) {
|
||||
this.buildCredentialTag = (credential) => {
|
||||
const icon = `${credential.kind}`;
|
||||
const link = `/#/credentials/${credential.id}`;
|
||||
const tooltip = strings.get('tooltips.VIEW_THE_CREDENTIAL');
|
||||
const value = $filter('sanitize')(credential.name);
|
||||
|
||||
return { icon, link, tooltip, value };
|
||||
};
|
||||
this.buildTag = (tag) => {
|
||||
const value = $filter('sanitize')(tag);
|
||||
|
||||
return { value };
|
||||
};
|
||||
}
|
||||
|
||||
TagService.$inject = ['ComponentsStrings', '$filter'];
|
||||
|
||||
export default TagService;
|
Loading…
Reference in New Issue
Block a user