[update] Add label on tree

This commit is contained in:
brunosimon
2016-08-14 15:23:41 +02:00
parent ae6458ade1
commit a2e7f6b541
3 changed files with 7 additions and 6 deletions
+2 -4
View File
@@ -83,6 +83,7 @@ application.factory(
file = Object.assign( {}, data );
file.notif = 0;
file.new = true;
for( var _version of file.versions )
{
_version = reformat_version( _version );
@@ -93,8 +94,6 @@ application.factory(
result.tree.add_file( data.path.full, file )
}
file.notif++;
// Apply callback
if( typeof update_callback === 'function' )
update_callback.apply( this, [ data ] );
@@ -152,6 +151,7 @@ application.factory(
// Format data
file.notif = 0;
file.new = true;
for( var _version of file.versions )
{
_version = reformat_version( _version );
@@ -161,8 +161,6 @@ application.factory(
result.tree.add_file( _file_key, file )
}
file.notif++;
}
// Apply callback