[update] Add label on tree
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user