mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-20 00:08:02 +01:00
fix icons
This commit is contained in:
parent
e621d98b71
commit
91c12976e5
@ -19,22 +19,13 @@ const SPADEN_CLASS = {
|
||||
};
|
||||
|
||||
function getIcon (type) {
|
||||
if (type.indexOf('created') > -1 ) {
|
||||
return 'add';
|
||||
switch (type) {
|
||||
case 'feature-updated': return 'autorenew';
|
||||
case 'feature-created': return 'add';
|
||||
case 'feature-deleted': return 'remove';
|
||||
case 'feature-archived': return 'archived';
|
||||
default: return 'star';
|
||||
}
|
||||
|
||||
if (type.indexOf('deleted') > -1 ) {
|
||||
return 'remove';
|
||||
}
|
||||
|
||||
if (type.indexOf('updated') > -1 ) {
|
||||
return 'update';
|
||||
}
|
||||
|
||||
if (type.indexOf('archived') > -1 ) {
|
||||
return 'archived';
|
||||
}
|
||||
return 'bookmark';
|
||||
}
|
||||
|
||||
function buildItemDiff (diff, key) {
|
||||
|
Loading…
Reference in New Issue
Block a user