1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

fix icons

This commit is contained in:
ivaosthu 2016-11-24 21:44:21 +01:00
parent e621d98b71
commit 91c12976e5

View File

@ -19,22 +19,13 @@ const SPADEN_CLASS = {
}; };
function getIcon (type) { function getIcon (type) {
if (type.indexOf('created') > -1 ) { switch (type) {
return 'add'; 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) { function buildItemDiff (diff, key) {